xcodebuild 自动打包命令 PhaseScriptExecution

662 阅读1分钟

用xcodebuild 自动打包命令时,报错 ,百度,google了好久 才找到解决问题的方法,记录下,也可以帮助遇到同样问题的同学 打包命令

xcodebuild archive -workspace <项目.xcworkspace> -scheme <scheme名字> -configuration Debug -archivePath ~/Desktop/APP ;

但是却遇到了报错😓

The following build commands failed:

PhaseScriptExecution SwiftFormat\ Run\ Script /Users/user/Library/Developer/Xcode/DerivedData/项目-edfesrnugkmksecivhpsypyabqxk/Build/Intermediates.noindex/ArchiveIntermediates/VoicePlay/IntermediateBuildFilesPath/项目.build/Debug-iphoneos/项目.build/Script-46DE7A78262F0738004820D7.sh (in target '项目' from project '项目')

(1 failure)

image.png 想说句脏话,MD,这个问题耽误了,LN好久。

解决方法:这个就在Build Phases下面的Run Script里面, 两个框都勾选上,果然可以运行了

679255-20161211154517804-342043048.png

参考 www.cnblogs.com/tufei7/p/61…