Can xcodebuild manage automatic signing?

后端 未结 9 1811
青春惊慌失措
青春惊慌失措 2021-01-31 15:41

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

相关标签:
9条回答
  • 2021-01-31 16:02

    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"

    0 讨论(0)
  • 2021-01-31 16:03

    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

    0 讨论(0)
  • 2021-01-31 16:07

    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
    
    0 讨论(0)
提交回复
热议问题