'How to validate ios app bundle without uploading to App Store
When I upload an iOS app to App Store, it validates the bundle and sends email if the bundle is incorrect.
I was wondering if there is any way to do this in the CI/CD pipeline even before attempting to upload it to App Store.
In the past, we have received many errors. To name a few-
ITMS-90685: CFBundleIdentifier Collision
ITMS-90205: Invalid Bundle
ITMS-90785: UIUserInterfaceStyle can’t be '' - It can only be 'Light', 'Dark', or 'Automatic'.
ITMS-90668: Invalid Bundle Executable
ITMS-90062: This bundle is invalid
ITMS-90165: Invalid Provisioning Profile Signature
ITMS-90478: Invalid Version
ITMS-90640: Invalid Info.plist value
ITMS-90338: Non-public API usage
ITMS-90892: Missing recommended icon
etc.
I understand that not all of them can be detected unless we upload it to App Store, but maybe some of them can be detected. I am sure other developers have felt the need of this. Is there a way to achieve this, maybe using XCode or any other tools Apple provides?
I asked the same question here but haven't got any response yet. https://developer.apple.com/forums/thread/705496
I am new to this area. So, I would greatly appreciate your help if you could give me a pointer. Thanks!
Update: If I publish to TestFlight and see such errors, I can't publish the same build again to TestFlight/AppStore as its not allowed. My intention is to fail the build in CI pipeline if I could do the same validation that Apple does on upload.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|