I\'m wondering if it\'s possible to get the latest provisioning profile from Apple Developer Portal using API? I\'ve set up CI for iOS project but I have to update provisioning
Use cupertino ruby script
There is a branch instead as the main one has not been updated since the portal is changed.
https://github.com/MatthewMaker/cupertino
I came up with the following solution:
create a special repo which has only up to date profiles (I know there is still human factor but I have not found better solution at the moment)
checout the repo with profiles before a build and copy it to the /User/$USER/Library/Library/MobileDevice/Provisioning Profiles
grep
to find a profile hash and pass the hash as a build option (e.g
xcodebuild -target ${TargetName} -sdk "${TARGET_SDK}" -configuration "Ad Hoc" "CODE_SIGN_IDENTITY[sdk=iphoneos*]=${PROFILE_NAME}" "PROVISIONING_PROFILE=${grep results}"
)
The solution works for me but still has some issues.
Spaceship provides access to he developer portal API, no web scraping!
I'm afraid not. You should be able to get it done by scraping the HTML, but that's about it. Apple are terrible when it comes to the web (client-side excepted).