xcode10对应的xcode command line tool编译的坑

众所周知,xcode10新增的编译系统new build system会不支持一些老项目的编译,一般的做法是在Xcode编译配置Xcode->File->Project Settings/Workspace Setting-> Build System -> Legacy Build System.

但是xcodebuild命令同样也可能会出现编译报错,因为是命令执行,所以无法直接更改这个配置,解决方式是增加

-UseModernBuildSystem=NO

这个参数即可。

xcodebuild -workspace Foo.xcworkspace -scheme Bar -configuration Release -archivePath /path/to/Foo.xcarchive clean archive -UseModernBuildSystem=NO

参考链接:https://*.com/questions/51205221/how-can-i-use-the-legacy-build-system-with-xcode-10s-xcodebuild?rq=1

 

上一篇:基于jquery fly插件实现加入购物车抛物线动画效果,jquery.fly.js


下一篇:Error:Execution failed for task ':clean'. > Unable to delete directory :\build\intermediates (转)