xcodebuild clean 錯(cuò)誤如下
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運(yùn)行打包app的時(shí)候,在命令后指定 -UseModernBuildSystem=value
-
UseModernBuildSystem=0或NO,使用legacy build system -
UseModernBuildSystem=1或YES,使用new build system