没有这样的文件或目录命令PhaseScriptExecution失败,退出代码为非零

时间:2018-11-25 16:34:22

标签: ios xcode

我遇到以下错误:

/Users/avivelkayam/Library/Developer/Xcode/DerivedData/ProjectName-evucwwryclirvdbauuppyncmdfyp/Build/Intermediates.noindex/TrendyPalCustomer.build/Debug-iphoneos/ProjectName.build/Script-F4E471CC20FB2640005A6092.sh: line 2: /Users/avivelkayam/TrendyPal: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

我尝试删除并重新安装可可豆荚,但是没有用。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

就我而言,这与 Podfile UITest 依赖关系有关,在我删除了 UITests pods之后,问题得以解决。 / p>

这是有问题的 Podfile

target 'YourApp' do
use_frameworks!
inhibit_all_warnings!

  # Pods for YourApp
    pod 'Whathever'

  target 'YourAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'YourAppUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

这是固定的一个:

target 'YourApp' do
use_frameworks!
inhibit_all_warnings!

  # Pods for YourApp
    pod 'Whathever'

  target 'YourAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'YourAppUITests'

然后再次运行pod install