I am trying to simplify the process build-> archive-> submit to publish iOS applications. We have more than 50 mobile applications that have an almost identical structure, but with different settings and settings.
I usually downloaded each project in xcode 4.2, and build-> archive-> represented the usual way using the xcode GUI, but now we have more than 50 applications, and this process is very tedious every time you click on the update.
In doing so, I am trying to speed up this process using the shell function. I did a lot of research and found that xcodebuild (see Reid's answer) should work, however the Archive parameter does not work, as I get the following error:
unsupported build action 'archive'
So, I wrote the following:
I put this in my .bash_profile and everything works correctly as I expected, except that I do not copy the correct "Info.plist" and I cannot figure out where to copy it or how to generate it. So now I'm stuck.
Xcode recognizes archives, but lists them in the Unknown Schema and Untitled sections of the organizer.
Any help on getting the right Info.plist is welcome.
I also welcome recommendations on how to improve the script and / or a more efficient way to batch build + archive these iOS apps.
Note:
I can’t go beyond Xcode 4.2, because this requires (as I understand it) OS X 10.7+, which I still can’t get (company computer).
I still really love the newbie bash / shell, so I apologize for any ugly code / practice above.
In addition, this is for the official presentation of the application, and not for ad-hoc or something like that.
Thanks again for your help.
mason81
source share