Ios Xcode 11.6因以下原因失败:命令PhaseScriptExecution因非零退出代码而失败

Ios Xcode 11.6因以下原因失败:命令PhaseScriptExecution因非零退出代码而失败,ios,xcode,firebase,flutter,google-cloud-firestore,Ios,Xcode,Firebase,Flutter,Google Cloud Firestore,我有一个使用Firebase/Firestore的颤振应用程序。在我的颤振应用程序中,颤振构建iOS正在工作,但在Xcode中,归档和构建通常会失败 Command PhaseScriptExecution failed with a nonzero exit code 我已经试过了: 钥匙链访问->右键单击登录->再次锁定和解锁->清除Xcode项目并再次生成 此外,吊舱去集成等也不起作用 但它不起作用。还尝试设置新项目,但在firestore集成后失败 The domain/defau

我有一个使用Firebase/Firestore的颤振应用程序。在我的颤振应用程序中,颤振构建iOS正在工作,但在Xcode中,归档和构建通常会失败

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

在我的例子中,问题发生在颤振升级之后。我的应用程序位于稳定频道,我将其更新为当前稳定版本

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


因此,解决方案是降级到1.17.5,在我的情况下,它在设置排除的体系结构->arm64时起作用。你能解决它吗?@Nehal使用不同的机器解决了它,所以我猜它是我电脑缓存中的某个东西。但它不在派生数据中或其他地方,导致我像以前一样删除和清理了1000次所有东西尝试其他解决方案,如使用不同的pc