Last active
February 26, 2019 12:46
-
-
Save hitaboy/ca5420f7a916471fe427a790b304a61f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cordova run ios --buildFlag='-UseModernBuildSystem=0' | |
As dpogue pointed out, cordova fixed this issue with the commit | |
92a62997adb3c8512328d5a0ae42fe5d156291f1 | |
which is in the master branch of their iOS platform repository. | |
To benefit from this fix, you'll have to install the latest dev version like this | |
cordova platform remove ios && cordova platform add https://github.com/apache/cordova-ios.git | |
And you need to add a build.json file to your project root that looks like this | |
{ | |
"ios": { | |
"debug": { | |
"developmentTeam": "YOURTEAMID" | |
}, | |
"release": { | |
"developmentTeam": "YOURTEAMID" | |
} | |
} | |
} | |
You can get your Team ID here: https://developer.apple.com/account/#/membership | |
Now run your build | |
cordova run ios --device | |
... or specifying your build.json | |
cordova run --buildConfig=build.json ios --device | |
and it should work! | |
cordova run --buildConfig=build.json ios --device |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment