泸州网站开发,郑州新闻百度,做网站用c语言可以吗,莱芜户型优化培训文章目录 一、前言二、xcodebuild 命令汇总三、xcodebuild 可选命令四、exportOptionsPlist文件内容配置说明五、项目实操六、拓展阅读 一、前言
关于iOS组包#xff0c;详参博文《ReactNative进阶#xff08;三十四#xff09;#xff1a;Jenkins 流水线 组包 iOS 应用包… 文章目录 一、前言二、xcodebuild 命令汇总三、xcodebuild 可选命令四、exportOptionsPlist文件内容配置说明五、项目实操六、拓展阅读 一、前言
关于iOS组包详参博文《ReactNative进阶三十四Jenkins 流水线 组包 iOS 应用包 ipa Archive 阶段报错error: Multiple commands produce问题修复及思考》
二、xcodebuild 命令汇总
查看xcodebuild简洁用法
xcodebuild -usage查看已安装的SDK
xcodebuild -showsdks查看项目中的Targets、Configurations和Schemes
xcodebuild
-list
[[-project projectname]|[-workspace workspacename]] 清除编译过程生成文件
xcodebuild clean
-workspace xxx.workspace
-scheme schemeName
-configuration Debug|Release
-sdksdkName编译命令
xcodebuild build
-workspace xxx.workspace
-scheme schemeName
-configuration Debug|Release
-sdksdkName编译并生成.xcarchive包
xcodebuild archive
-archivePath archivePath #生成的.xcarchive包存放路径
-workspace XXX.xcworkspace
-scheme schemeNmae #从-list命令中获取
-configuration Debug|Release
-sdk sdkName #sdkName可从showsdks命令中获取将生成的.archive包导出成ipa文件
xcodebuild -exportArchive
-archivePath archivePath #.archive文件的全路径 eg: .../.../XXX.xcarchive
-exportPath exportPath #ipa文件导出路径
-exportOptionsPlist exportOptionsPlistPath #exportOptionsPlist文件全路径 eg: .../.../XXX.plist这个plist文件可以通过打一次ipa包里面去获取然后根据需求修改三、xcodebuild 可选命令
xcodebuild可选命令如下
可选命令命令说明-usage查看xcodebuild简洁的用法-help查看帮助-verbose提供额外的状态输出-license显示Xcode和SDK许可协议-checkFirstLaunchStatus检查是否有任何初启动任务需要执行-project NAME编译项目名称例如:xcodebuild -project XXX.xcodeproj-target NAME编译目标名称-targets编译全部目标-workspace NAME编译工作空间名称-scheme NAME编译计划名称-configuration NAME为构建每一个目标使用build配置名称-xcconfig PATH在PATH作为替代应用文件中定义的构建设置-arch ARCH建立每个目标的架构ARCH;这将覆盖在项目中定义的架构-sdk SDK使用指定的SDK编译项目-toolchain NAME使用工具链与标识或名称-destination DESTINATIONSPECIFIER使用由目标说明用逗号分隔的一系列的key 描述目的地使用值对中描述的目的地-destination-timeout TIMEOUT等待TIMEOUT秒而搜索的目标设备-parallelizeTargets建立并行独立目标-jobs NUMBER指定并发生成操作的最大数量-dry-run做一切除了实际运行的命令-hideShellScriptEnvironment不显示在构建日志shell脚本中的环境变量-showsdks显示已安装的SDK的列表-showBuildSettings显示构建设置和值的列表-list列出了在一个工作空间中的一个项目的目标和配置或方案-find-executable NAME在所提供的SDK和工具链显示的完整路径可执行文件名称-find-library NAME在所提供的SDK和工具链显示的完整路径库名-version显示的Xcode的版本;与-sdk将显示一个或所有已安装的SDK信息-enableAddressSanitizer YES/NO测试时打开或关闭地址过滤-resultBundlePath PATH指定在描述什么发生了捆绑的结果将被放置的目录-derivedDataPath PATH指定的目录中生成产品和其他衍生数据会-archivePath PATH被指定任何创建的档案将被放置的目录或应导出存档-exportArchive指定归档应导出-exportOptionsPlist PATH指定用于配置归档导出plist文件的路径-enableCodeCoverage YES/NO打开代码覆盖率或关闭时的测试-exportPath PATH指定从存档导出的产品的目标-skipUnavailableActions指定不能执行计划的行动应被跳过而不是导致失败-exportLocalizations出口完成优秀项目本地化-importLocalizations进口本地化项目假设任何必要的本地化资源在Xcode中已创建-localizationPath指定XLIFF本地化文件路径-exportLanguage规定包括在本地化出口多个可选ISO 639-1语言
四、exportOptionsPlist文件内容配置说明 Key类型value说明compileBitcodeBoolFor non-App Store exports, should Xcode re-compile the app from bitcode? Defaults to YES对于非App Store的出口应重新编译Xcode中从bitcode应用程序默认为YES embedOnDemandResources AssetPacksInBundle BoolFor non-App Store exports, if the app uses On Demand Resources and this is YES, asset packs are embedded in the app bundle so that the app can be tested without a server to host asset packs. Defaults to YES unless onDemandResourcesAssetPacksBaseURL is specified对于非App Store的出口如果应用程序使用按需的资源这是YES资产包被嵌入在应用程序包使应用程序可以在没有服务器托管资产包进行测试。默认为YES除非指定onDemandResourcesAssetPacksBaseURLiCloudContainerEnvironment For non-App Store exports, if the app is using CloudKit, this configures the com.apple.developer.icloud-container-environment entitlement. Available options: Development and Production. Defaults to Development对于非App Store的出口如果应用程序使用CloudKit这种配置“com.apple.developer.icloud容器环境”的权利。可用选项开发和生产。默认为发展manifestDictionaryFor non-App Store exports, users can download your app over the web by opening your distribution manifest file in a web browser. To generate a distribution manifest, the value of this key should be a dictionary with three sub-keys: appURL, displayImageURL, fullSizeImageURL. The additional sub-key assetPackManifestURL is required when using on demand resources对于非App Store的出口用户可以通过在Web浏览器中打开您的分发清单文件下载你的应用程序在网上。要生成分布明显此键的值应该是有三个子键的字典appURLdisplayImageURLfullSizeImageURL。额外的子键assetPackManifestURL是按需使用资源时需要。methodStringDescribes how Xcode should export the archive. Available options: app-store, ad-hoc, package, enterprise, development, and developer-id. The list of options varies based on the type of archive. Defaults to developmentXcode中描述如何导出存档。可用选项应用程序商店即席包装企业发展开发人员ID。选项列表会有所不同根据存档的类型。默认为发展 onDemandResourcesAssetP acksBaseURL StringFor non-App Store exports, if the app uses On Demand Resources and embedOnDemandResourcesAssetPacksInBundle isnt YES, this should be a base URL specifying where asset packs are going to be hosted. This configures the app to download asset packs from the specified URL对于非App Store的出口如果应用程序使用按需资源embedOnDemandResourcesAssetPacksInBundle不是YES这应该是一个基本URL指定其中资产包将要举行。该配置应用从指定的URL下载资产包teamIDStringThe Developer Portal team to use for this export. Defaults to the team used to build the archive开发者门户网站团队使用这个出口。默认为球队用来建立档案thinningStringFor non-App Store exports, should Xcode thin the package for one or more device variants? Available options: none (Xcode produces a non-thinned universal app), thin-for-all-variants (Xcode produces a universal app and all available thinned variants), or a model identifier for a specific device (e.g. iPhone7,1). Defaults to none对于非App Store的出口Xcode中应该薄包一个或多个设备的变种可用选项无Xcode中产生的非变薄普遍的应用程序薄参加的所有变体Xcode中产生一个通用的应用程序以及所有可用的变薄变型或针对特定设备型号标识例如“ iPhone7,1“。默认为无uploadBitcodeBoolFor App Store exports, should the package include bitcode? Defaults to YES对于App Store的导出应包包括bitcode默认为YESuploadSymbolsBoolFor App Store exports, should the package include symbols? Defaults to YES对于App Store的出口应包包含符号默认为YES exportOptionsPlist文件示例如下
?xml version1.0 encodingUTF-8?
!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd
plist version1.0
dictkeycompileBitcode/keyfalse/keymethod/keystringdevelopment/stringkeyprovisioningProfiles/keydictkeycom.669.yanyou/keystringyanyou_dev/string/dictkeysigningCertificate/keystringF13EE282147D6ED2CD5ACEEF20476B39C87AEAAC/stringkeysigningStyle/keystringmanual/stringkeystripSwiftSymbols/keytrue/keyteamID/keystringHW9U4B8YY9/stringkeythinning/keystringnone/string
/dict
/plist五、项目实操
cd ios_sec# 打包生成 xcarchive 文件
xcodebuild archive -workspace test.xcworkspace -scheme test -configuration Release -archivePath bin/test.xcarchive# 根据 xcarchive 文件进行签名
xcodebuild -exportArchive -archivePath bin/test.xcarchive -exportOptionsPlist test/package.plist -exportPath ../production/iOS六、拓展阅读
《ReactNative进阶三十四Jenkins 流水线 组包 iOS 应用包 ipa Archive 阶段报错error: Multiple commands produce问题修复及思考》 文章转载自: http://www.morning.wdpbq.cn.gov.cn.wdpbq.cn http://www.morning.hzqjgas.com.gov.cn.hzqjgas.com http://www.morning.gqfjb.cn.gov.cn.gqfjb.cn http://www.morning.juju8.cn.gov.cn.juju8.cn http://www.morning.rqfzp.cn.gov.cn.rqfzp.cn http://www.morning.xfxnq.cn.gov.cn.xfxnq.cn http://www.morning.xldpm.cn.gov.cn.xldpm.cn http://www.morning.rfpb.cn.gov.cn.rfpb.cn http://www.morning.yhywr.cn.gov.cn.yhywr.cn http://www.morning.yhpq.cn.gov.cn.yhpq.cn http://www.morning.ftzll.cn.gov.cn.ftzll.cn http://www.morning.qlhkx.cn.gov.cn.qlhkx.cn http://www.morning.fbpdp.cn.gov.cn.fbpdp.cn http://www.morning.ckcjq.cn.gov.cn.ckcjq.cn http://www.morning.phlwj.cn.gov.cn.phlwj.cn http://www.morning.jxdhc.cn.gov.cn.jxdhc.cn http://www.morning.skql.cn.gov.cn.skql.cn http://www.morning.lbcfj.cn.gov.cn.lbcfj.cn http://www.morning.wwklf.cn.gov.cn.wwklf.cn http://www.morning.rsmtx.cn.gov.cn.rsmtx.cn http://www.morning.brcdf.cn.gov.cn.brcdf.cn http://www.morning.yslfn.cn.gov.cn.yslfn.cn http://www.morning.fpxms.cn.gov.cn.fpxms.cn http://www.morning.uytae.cn.gov.cn.uytae.cn http://www.morning.mwqbp.cn.gov.cn.mwqbp.cn http://www.morning.hpkr.cn.gov.cn.hpkr.cn http://www.morning.gqmhq.cn.gov.cn.gqmhq.cn http://www.morning.rqlbp.cn.gov.cn.rqlbp.cn http://www.morning.fhntj.cn.gov.cn.fhntj.cn http://www.morning.pswqx.cn.gov.cn.pswqx.cn http://www.morning.czqqy.cn.gov.cn.czqqy.cn http://www.morning.c7495.cn.gov.cn.c7495.cn http://www.morning.gcysq.cn.gov.cn.gcysq.cn http://www.morning.mltsc.cn.gov.cn.mltsc.cn http://www.morning.wchcx.cn.gov.cn.wchcx.cn http://www.morning.51meihou.cn.gov.cn.51meihou.cn http://www.morning.wrfk.cn.gov.cn.wrfk.cn http://www.morning.cpqqf.cn.gov.cn.cpqqf.cn http://www.morning.bnbzd.cn.gov.cn.bnbzd.cn http://www.morning.lywys.cn.gov.cn.lywys.cn http://www.morning.mnwmj.cn.gov.cn.mnwmj.cn http://www.morning.wbfg.cn.gov.cn.wbfg.cn http://www.morning.gpryk.cn.gov.cn.gpryk.cn http://www.morning.gmztd.cn.gov.cn.gmztd.cn http://www.morning.hfytgp.cn.gov.cn.hfytgp.cn http://www.morning.lfqtp.cn.gov.cn.lfqtp.cn http://www.morning.nzsdr.cn.gov.cn.nzsdr.cn http://www.morning.trkl.cn.gov.cn.trkl.cn http://www.morning.bcnsl.cn.gov.cn.bcnsl.cn http://www.morning.jpnw.cn.gov.cn.jpnw.cn http://www.morning.pangucheng.cn.gov.cn.pangucheng.cn http://www.morning.whclz.cn.gov.cn.whclz.cn http://www.morning.jcfg.cn.gov.cn.jcfg.cn http://www.morning.fhkr.cn.gov.cn.fhkr.cn http://www.morning.msbct.cn.gov.cn.msbct.cn http://www.morning.lmrcq.cn.gov.cn.lmrcq.cn http://www.morning.jbxmb.cn.gov.cn.jbxmb.cn http://www.morning.ltspm.cn.gov.cn.ltspm.cn http://www.morning.rnnq.cn.gov.cn.rnnq.cn http://www.morning.rqjl.cn.gov.cn.rqjl.cn http://www.morning.qwrb.cn.gov.cn.qwrb.cn http://www.morning.rhsr.cn.gov.cn.rhsr.cn http://www.morning.wqnc.cn.gov.cn.wqnc.cn http://www.morning.kbfzp.cn.gov.cn.kbfzp.cn http://www.morning.lmdfj.cn.gov.cn.lmdfj.cn http://www.morning.mrlkr.cn.gov.cn.mrlkr.cn http://www.morning.brtxg.cn.gov.cn.brtxg.cn http://www.morning.rjxwq.cn.gov.cn.rjxwq.cn http://www.morning.alive-8.com.gov.cn.alive-8.com http://www.morning.ryfq.cn.gov.cn.ryfq.cn http://www.morning.0dirty.cn.gov.cn.0dirty.cn http://www.morning.gnghp.cn.gov.cn.gnghp.cn http://www.morning.qlsbz.cn.gov.cn.qlsbz.cn http://www.morning.nwjzc.cn.gov.cn.nwjzc.cn http://www.morning.qkgwx.cn.gov.cn.qkgwx.cn http://www.morning.pdwzr.cn.gov.cn.pdwzr.cn http://www.morning.qbnfc.cn.gov.cn.qbnfc.cn http://www.morning.uytae.cn.gov.cn.uytae.cn http://www.morning.lfxcj.cn.gov.cn.lfxcj.cn http://www.morning.klyyd.cn.gov.cn.klyyd.cn