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
=0
或NO
,使用legacy build system
-
UseModernBuildSystem
=1
或YES
,使用new build system