Xcode 11.6失败,并且:命令PhaseScriptExecution失败,退出代码非零

时间:2020-06-07 08:52:04

标签: ios xcode firebase flutter google-cloud-firestore

我有一个使用Firebase / Firestore的Flutter应用程序。在我的flutter应用程序flutter build中,iOS可以运行,但是在Xcode中,Archive和General的构建失败,

Command PhaseScriptExecution failed with a nonzero exit code

我已经尝试过:

  • 钥匙串访问->右键单击登录->再次锁定并解锁->清除Xcode项目并再次进行构建。
  • 豆荚解体等也不起作用

但是它不起作用。还尝试设置新项目,但在Firestore集成后失败。

The domain/default pair of (/Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/Info.plist, CFBundleExecutable) does not exist
fatal error: lipo: can't map input file: /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/ (Invalid argument)
fatal error: lipo: can't map input file: /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/ (Invalid argument)
Failed to extract x86_64 for /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/. Running lipo -info:
fatal error: lipo: can't map input file: /Users/username/Library/Developer/Xcode/DerivedData/Runner-bhnxzkbbayxxhjauqwbcxaiedcis/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/flutter_assets/ios/Flutter/App.framework/ (Invalid argument)
Command PhaseScriptExecution failed with a nonzero exit code

2 个答案:

答案 0 :(得分:1)

好的,所以在我的情况下,问题是在升级后发生的。我的应用程序在稳定频道上,并将其更新为当前的稳定版本。

在1.17.5上运行之前,一切正常,在1.20.0上发生了错误

所以解决方案降级到1.17.5

答案 1 :(得分:0)

enter image description here就我而言,它在设置 Excluded Architectures -> arm64

时有效