The title and body ask two different things, ‘app package’ and ‘original files’.
The ‘original files’, source code, is never uploaded to Apple. You will need to get these from the original developer.
The compiled ‘app package’ in an .ipa bundle for execution on an iOS device (not Simulator) cannot be downloaded from App Store Connect.
Apple does not provide any way of retrieving an upload app/IPA. It's neither possible through App Store Connect nor the App Store Connect API.
https://stackoverflow.com/questions/60947606/download-ipa-build-via-app-store-connect-api
If you want to run the app on a physical device without releasing to the App Store, add the app to TestFlight and enable internal testing.
Videos
» pip install appstoreconnect
We can download IPA file with the help of Apple Configurator. Follow below steps to download IPA file.
- Download Apple Configurator 2 app on your MAC.
- Connect your iPhone with MAC and Apple ID should be same in apple Configurator and iPhone.
- New window will display with app count badge in All Devices Tab.
- Right click on your connected device in Apple Configurator and select Add and then Apps.
- Process will complete and Popup will show with options, no need to click any option and go to this path
~/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps/
- Save IPA file in your directory -Now stop Apple Configurator
Apple does not provide any way of retrieving an upload app/IPA. It's neither possible through App Store Connect nor the App Store Connect API.
You can only check entitlements and additional build information in the App Store Connect interface. For that go to App Store Connect > My Apps > Activity > All Builds > Click on the build
(Fastlane does also not provide any way, because Apple does not expose the data. It uses the "web API", i.e. has access to more information than the "standard" App Store Connect API)