I am having trouble with building an .ipa file on a Mac system running Jenkins. My GIT project excludes the “platforms” folder so, after pulling code from GIT, I run
ionic platform add ios (succeeds)
ionic build ios (succeeds)
And finally this:
xcodebuild -scheme BestAppEver clean archive -archivePath build/BestAppEver
However, this last command results in a terminal window spinning forever with no end. This command DOES work if I open the generated .xcodeproj file first and then run the command in the terminal window. Has anyone seen this? Or have any ways around it?