How to build Ionic Cordova with Xcode 10?

cordova-ios@5.0.0 now supports Xcode 10 https://cordova.apache.org/announcements/2019/02/09/cordova-ios-release-5.0.0.html

So you no longer need the flag -- --buildFlag="-UseModernBuildSystem=0" :slight_smile:

Just do the following:

ionic cordova platform remove ios
ionic cordova platform add ios@5.0.0
6 Likes

Hi,

I am facing this same issue.

I am working on Ionic 1 app.
I am able to build .apk for latest version android phones and app is working fine.
With following command:
ionic cordova run ios – --buildFlag="-UseModernBuildSystem=0"
I am able to build iOS project from ionic and able to generate ipa file from xcode 10. But after installing .ipa on actual device (with iOS 12 and above), app open for a second and went into background.
Same .ipa file is working fine for older iOS devices with iOS 9 and 10.

Following are my setup details:

Ionic:

ionic (Ionic CLI) : 4.9.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic1 1.3.3
@ionic/v1-toolkit : 1.0.17

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4, ios 5.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 19 other plugins)

System:

ios-deploy : 1.9.2
ios-sim : 7.0.0
NodeJS : v10.15.0 (/usr/local/bin/node)
npm : 6.8.0
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61

Kindly advise.

Hi All,

I found the resolution for this issue.
It seems the issue was with CT signature issue.

Posting the resolution, so it might help someone.
In Keychain Access, I set the trust settings to “Use System Defaults” for the following certificates:

Apple Worldwide Developer Relations Certification Authority
Developer ID Certification Authority
iPhone Developer: {email}
iOS Distribution

After this, in XCode do clean build for the project. Also restart XCode.

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:

  • Check iOS Provisioning Profile Status
  • Rebuild App in Xcode 10.0
  • Archive and create new manifest and .ipa file for app
  • Rebuild app in npm using ionic cordova build ios --prod
  • Update any plugins that we’re needing updates using npm outdated
  • Commit and Push to Production branch using ionic Deploy

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

Have you checked File > Workspace Settings > Build System from Xcode ?