Ionic iOS build suddenly stop working from the command line? Using Xcode 10? Quick solution here!
Problem
Suddenly my iOS builds had stopped working, just crapping out before a build was created. No obvious error messages. Turns out, the default build system has changed in Xcode 10 and now needs to be reverted with a flag to make everything happy again.
Solution
Add a file called "build.json" to your project root (same level as package.json), with the following contents:
{
"ios": {
"debug": {
"buildFlag": [
"-UseModernBuildSystem=0"
]
},
"release": {
"buildFlag": [
"-UseModernBuildSystem=0"
]
}
}
}
Then when you do the build from the command line, everything will be ok again for iOS.
D
Source: https://ionic.zendesk.com/hc/en-us/articles/360009511574-2018-09-21-Building-Locally-using-Xcode-10
Comments: