3
votes

I am a app developer using Ionic to create my first project.

Currently, I need to use:

ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0"

and not:

ionic cordova build ios

because basic ionic doesn't work with Xcode.

My Question is: Can I still publish my app to the app store even though I must use the special "--buildFlag="-UseModernBuildSystem=0" to run my code?

2

2 Answers

2
votes

Update :

Cordova ios 5.0.0 has now been released and with it, this issue has been resolved. The below workaround can now be skipped.

Original Answer:

You can publish it to the App Store. However, it will be a debug build NOT a production build.

I would recommend downgrading xcode to version 9.x and then publishing the app until the next version of cordova ios is released.

Steps to downgrade xcode :

  • Download an older version of xcode from the Developer site
  • Unzip the content of the download
  • Replace the xcode folder under Applications directory with the downloaded folder.

Cordova announcement: https://github.com/apache/cordova-ios/issues/407

0
votes

Use

Xcode/File/Workplace Settings.../Legacy Build System. Not New Build System (Default)