【问题标题】:Xcode 11.6 fails with: Command PhaseScriptExecution failed with a nonzero exit codeXcode 11.6 失败:命令 PhaseScriptExecution 失败,退出代码为非零
【发布时间】:2023-03-27 06:57:01
【问题描述】:

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

Command PhaseScriptExecution failed with a nonzero exit code

我已经试过了:

  • 钥匙串访问->右键登录->再次锁定和解锁->清除Xcode项目并再次构建。
  • pod deintegrate 等也无法正常工作

但它不起作用。还尝试设置新项目,但在集成 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

【问题讨论】:

  • 你能解决吗?
  • @Nehal 使用不同的机器解决了它,所以我猜它是我电脑缓存中的东西。但它不在派生数据或其他东西中,因为我在尝试使用其他电脑等其他解决方案之前删除并清理了 1000 次之类的东西

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


【解决方案1】:

好的,所以在我的情况下,问题发生在颤振升级之后。我的应用在稳定频道上,我已将其更新到当前稳定版本。

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

所以解决方案是降级回 1.17.5

【讨论】:

    【解决方案2】:

    在我的情况下,它在设置 Excluded Architectures -> arm64 时起作用

    【讨论】:

      猜你喜欢
      • 2020-12-01
      • 2021-07-21
      • 2021-02-05
      • 2021-07-07
      • 2019-04-16
      • 1970-01-01
      • 2022-09-27
      • 2021-02-03
      • 2021-03-06
      相关资源
      最近更新 更多