xcodebuild打包总结 博客分类: Xcode8xcodebuild
程序员文章站
2024-03-14 23:32:05
...
[size=large][size=medium][size=small]xcodebuild
--help
-version
-showsdks
-list 工程目录下
// clean工程
xcodebuild clean
//
-configuration Debug/Release
-workspace SoYoungMobile40.xcworkspace
-project SoYoungMobile40.xcodeproj
-scheme SoYoungMobile40
//
-sdk iphoneos10.0
总结:
自动签名只能在Xcode中使用,使用CI打包工具需要使用手动来配置。
# 编译、生成xcarchive文件 (这条命令适用于automatic签名)
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Release DEVELOPMENT_TEAM_Production=UTKJ82F75E
# 把编译、生成xcarchive文件生成ipa包
xcodebuild -exportArchive -exportFormat IPA -archivePath build/SoYoungMobile40.xcarchive -exportPath build/SoYoungMobile40.ipa
========
# 安装select_xcode_signing_method脚本 用来切换automatic和manual签名方式
# https://gist.github.com/thelvis4/253a2cdea8360da519b2a025c5d8fbac
gem install xcodeproj # 需要先安装工具
ruby select_xcode_signing_method.rb -p . -t SoYoungMobile40 -m 'Manual'
# 可用 Debug
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Debug PROVISIONING_PROFILE_SPECIFIER='soyoungapp' CODE_SIGN_IDENTITY='iPhone Developer'
# 可用 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://*.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]
--help
-version
-showsdks
-list 工程目录下
// clean工程
xcodebuild clean
//
-configuration Debug/Release
-workspace SoYoungMobile40.xcworkspace
-project SoYoungMobile40.xcodeproj
-scheme SoYoungMobile40
//
-sdk iphoneos10.0
总结:
自动签名只能在Xcode中使用,使用CI打包工具需要使用手动来配置。
# 编译、生成xcarchive文件 (这条命令适用于automatic签名)
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Release DEVELOPMENT_TEAM_Production=UTKJ82F75E
# 把编译、生成xcarchive文件生成ipa包
xcodebuild -exportArchive -exportFormat IPA -archivePath build/SoYoungMobile40.xcarchive -exportPath build/SoYoungMobile40.ipa
========
# 安装select_xcode_signing_method脚本 用来切换automatic和manual签名方式
# https://gist.github.com/thelvis4/253a2cdea8360da519b2a025c5d8fbac
gem install xcodeproj # 需要先安装工具
ruby select_xcode_signing_method.rb -p . -t SoYoungMobile40 -m 'Manual'
# 可用 Debug
xcodebuild clean archive -archivePath build/SoYoungMobile40.xcarchive -workspace SoYoungMobile40.xcworkspace -scheme SoYoungMobile40 -configuration Debug PROVISIONING_PROFILE_SPECIFIER='soyoungapp' CODE_SIGN_IDENTITY='iPhone Developer'
# 可用 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://*.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]
推荐阅读
-
xcodebuild打包总结 博客分类: Xcode8xcodebuild
-
xcodebuild打包总结 博客分类: Xcode8xcodebuild
-
web前端小总结 博客分类: web前端 浏览器web前端
-
面试问题总结(问题篇) 博客分类: 面试 面试多线程javajdbc
-
java流的总结——从原理分析 博客分类: java IO javaio数据源字节字符
-
浏览器的加载与页面性能优化 博客分类: 技术总结 浏览器加载页面性能优化
-
jsp页码自动跳转 博客分类: javascriptjspjava开发总结 jsp页面自动跳转
-
清除Tomcat页面缓存的方法 博客分类: 开发总结jsphtml tomcat页面缓存清除
-
mysqlworkbench Error Code: 0 Server sent unknown charsetnr (255) . 博客分类: mysql问题总结 mysql workbenchutf8mb4unknown charsetnr (255)
-
HBase之Java API 博客分类: 技术总结NOSql HBaseJavaAPI