SUMMARY:
If you open a project in Xcode 8 with \"Automatically manage signing\" enabled and a new bundle ID, it will automatically create and download a
This isn't directly supported in Xcode 8. In Xcode 9, however, you can pass -allowProvisioningUpdates to xcodebuild and automatic signing will work just as in the Xcode UI, without needing any additional tools.
e.g. cordova run ios --buildFlag="-allowProvisioningUpdates"
As some other answers have already mentioned, what you are looking for is a release automation tool called Fastlane. https://fastlane.tools/
If you are not familiar with it, I believe best place to get started would be raywenderlich's fastlane tutorial.
https://www.raywenderlich.com/136168/fastlane-tutorial-getting-started-2
You can do it using fastlane.
https://fastlane.tools/
cert : Fetch or generate the latest available code signing identity
sigh : Generates a provisioning profile. Stores the profile in the current folder
ps : If you are running it from a CI server (for example jenkins) you need then to unlock login keychain :
security unlock-keychain -p PASSWORD /Users/YOUR-USER/Library/Keychains/login.keychain
Example within the fastfile :
cert(
development: true,
)
sigh(
development: true,
app_identifier: "YOUR_APP_IDENTIFIER"
)
Here's an example of a basic Fastfile :
fastlane_version "2.27.0"
default_platform :ios
platform :ios do
lane :beta do
cert
sigh
gym
end
error do |lane, exception|
puts "Got an error! #{exception.error_info.to_s}"
end
end