xcodebuild 提示error:The Legacy Build System will be removed in a future release.

xcodebuild clean 错误如下

Prepare build
error: The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings.
Build Preparation
The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Workspace Settings.

** CLEAN FAILED **
The following build commands failed:
    Prepare build
(1 failure)
Build step 'Execute shell' marked build as failure
Finished: FAILURE

解决办法

xcodebuild -configuration  clean build  -UseModernBuildSystem=YES

如果在使用脚本xcodebuild运行打包app的时候,在命令后指定 -UseModernBuildSystem=value

  • UseModernBuildSystem=0NO,使用 legacy build system
  • UseModernBuildSystem=1YES,使用 new build system
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容