"I lost the original code for my app, and I want to recreate it and upload it as an update to the existing app in the App Store. How can I ensure that the new app will be recognized as an update rather than a new app?"
I lost the original code for my app
How can I ensure that the new app will be recognized as an update rather than a new app?
Use the same bundle ID.