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

你可能感兴趣的:(xcodebuild 提示error:The Legacy Build System will be removed in a future release.)