Can xcodebuild manage automatic signing?

后端 未结 9 1848
青春惊慌失措
青春惊慌失措 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 15:50

    If you are archiving the xCode project with xcodebuild and you have xCode 9 installed you can provide the following FLAGS to the compilation command:

    CODE_SIGN_STYLE="Manual" \
    DEVELOPMENT_TEAM="" \
    

    It will set the automatic signing to false and the development team to empty. You can set the values you need. For instance:

    xcodebuild \
    -scheme "your_scheme" \
    -sdk iphoneos \
    -archivePath "/Users/youruser/Developer/Jenkins/Home/customWorkspace/folder/platforms/ios/build/device/yourproject.xcarchive" \
    -configuration Release \
    -allowProvisioningUpdates \
    CONFIGURATION_BUILD_DIR="/Users/youruser/Developer/Jenkins/Home/customWorkspace/folder/platforms/ios/build/device" \
    CODE_SIGN_IDENTITY="your code sign identity" \
    PROVISIONING_PROFILE="your provisioning profile" \
    CODE_SIGN_STYLE="Manual" \
    DEVELOPMENT_TEAM="" \
    archive
    

    Then you can create the ipa with -exportArchive and it will create the ipa as you need

提交回复
热议问题