xcodecordovaionic-frameworkios12enterprise-distribution

Xcode 10 breaks Ionic Cordova build


I have an Ionic 3 App using Enterprise Distribution for a client and of course Apple likes to change settings on their new iOS. Everything was working fine on iOS 11 and when a client-user upgraded to iOS 12 their app completely broke and could not re-download.

Steps I've Tried:

Everything I've tried allowed me to build the app successfully and I was able to build the app locally on my device via Xcode, but as soon as I put the .ipa file on our server the app will not successfully download.

I have a feeling it may be a particular setting in Xcode, but I'm stuck right now. Any help would be appreciated.

Edit: After the update of Xcode 10, the app would no longer build successfully after running ionic cordova build ios


Solution

  • So the issue was never apparent, but I somehow fixed the issue by removing the other branch from git and Ionic deploy and kept the Production branch active on the latest commit. I also created the certificate profile on Ionic Deploy using the Enterprise Developer Certificate and Provisioning Profile and packaged my app. I used the .ipa file from Deploy and threw it on the server and it worked like a charm.

    EDIT: I finally found documentation on why the app breaks. When Xcode 10 was released, Apache Cordova did not and still does not have support for iOS if the user has Xcode 10 downloaded to build in the terminal. Link provided here: Xcode 10 Support.

    When building the app using ionic cordova build ios or ionic cordova run ios You must run it like this: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0". More information in the link provided.

    EDIT: More possible answers can be found here. In some cases, users are experiencing similar yet different issues.