build automation - Can iOS Provisioning Profiles be renewed from the command-line? -
i've got build script running on mac mini build server. should work fine still need renew , latest provisioning profile manually. there way can done command-line?
i used automator record , create app renews provisioning profiles.
the steps (copying watch me do list):
- click xcode in dock (make sure pin xcode doc)
- click "window" menu
- organizer
- click "refresh" button
- click "log in" button (save credentials in key chain)
then save desktop refreshprovisionprofile.app (or somewhere else).
to run terminal or build script follows: /users/user_name/desktop/refreshprovisionprofile.app/contents/macos/application\ stub refreshprovisionprofile.app/
seems work me.
here code use identify profile want ship qa project:
#copy profile $profilename cd "/users/macbuild/library/mobiledevice/provisioning profiles/" profilefile="`grep -al $profilename *.mobileprovision`" echo "also copy $profilefile network" if cp -fv $profilefile /volumes/shared/builds/$buildid/ echo "matching provisioning certificate: shared/builds/$buildid/$profilefile" fi
for xcode 5.0.2 order follows:
- click xcode menu, choose preferences
- select accounts tab
- select apple id in left pane
- click view details... button in right pane
- click refresh button @ bottom left of new window
Comments
Post a Comment