美文网首页
Xcode10环境Jenkins打包出错解决办法

Xcode10环境Jenkins打包出错解决办法

作者: Harry_Coding | 来源:发表于2019-05-20 16:04 被阅读0次

jenkins打包出现 Multiple commands produce ... 错误

分析原因

Jenkins根据配置.sh脚本执行打包操作,无法根据xcode的配置打包,所以我们需要从命令入手,增加命令的附属语句-UseModernBuildSystem=<value> 表示标示是否采用新编译模式进行编译

解决方式

There is an (as of yet undocumented) flag in xcodebuild: -UseModernBuildSystem=<value>. The value can be either 0 or NO to use the legacy ("original") build system, or 1 or YES to use the new build system.
For example:
xcodebuild -workspace Foo.xcworkspace -scheme Bar -configuration Release -archivePath /path/to/Foo.xcarchive clean archive -UseModernBuildSystem=NO
(-UseNewBuildSystem=<value> seems to work as well; this flags was introduced in Xcode 9 but I suspect UseModernBuildSystem is going to be the "official" flag for this.)

相关文章

网友评论

      本文标题:Xcode10环境Jenkins打包出错解决办法

      本文链接:https://www.haomeiwen.com/subject/vkwkzqtx.html