xcodebuild packaging summary

[size=large][size=medium][size=small]xcodebuild

--help
-version
-showsdks
-list project directory

// clean project
xcodebuild clean

//
-configuration Debug/Release
-workspace SoYoungMobile40.xcworkspace
-project SoYoungMobile40. xcodeproj
-scheme SoYoungMobile40
//
-sdk iphoneos10.0Summary

:
Automatic signing can only be used in Xcode, and the CI packaging tool needs to be configured manually.

# Compile and generate xcarchive file (this command is suitable for automatic signature)
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Release DEVELOPMENT_TEAM_Production=UTKJ82F75E
# Compile and generate xcarchive file to generate ipa package
xcodebuild -exportArchive -exportFormat IPA -archivePath build/SoYoungMobile40.xcarchive -exportPath build/SoYoungMobile40.ipa

========
# Install the select_xcode_signing_method script to switch between automatic and manual signing methods
# https://gist.github.com /thelvis4/253a2cdea8360da519b2a025c5d8fbac
gem install xcodeproj # You need to install the tool
ruby ​​first select_xcode_signing_method.rb -p . -t SoYoungMobile40 -m 'Manual'


# Debug
xcodebuild clean archive -archivePathconfiguration build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile Debug PROVISIONING_PROFILE_SPECIFIER='soyoungapp' CODE_SIGN_IDENTITY='iPhone Developer'

# Available Distribution
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Release PROVISIONING_PROFILE_SPECIFIER='qd_dis' CODE_SIGN_IDENTITY='iPhone Distribution'

#可用 adhoc
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Release PROVISIONING_PROFILE_SPECIFIER='qd_adhoc1' CODE_SIGN_IDENTITY='iPhone Distribution'

# 生成ipa包
xcodebuild -exportArchive -exportFormat IPA -archivePath build/SoYoungMobile40.xcarchive -exportPath build/SoYoungMobile40.ipa


参考:
http://stackoverflow.com/questions/39500634/use-xcodebuild-xcode-8-and-automatic-signing-in-ci-travis-jenkins-environmen
https://pewpewthespells.com/blog/migrating_code_signing.html#signing-methods-xcode-8
http://blog.csdn.net/sqq521/article/details/46830201
[/size][/size][/size]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326520249&siteId=291194637