ios - MacCatalina 上的 Xcode 版本 12.4“命令 PhaseScriptExecution 失败,退出代码为非零”
问题描述
我的问题是我无法再通过 Xcode 模拟我的应用程序,无论是在模拟器(任何设备)上还是在真实设备上。
我不断收到错误代码:
命令 PhaseScriptExecution 失败,退出代码非零。注意:使用新的构建系统 注意:并行构建目标 注意:规划构建 注意:构建构建描述
...下面有不同的警告。
发生了以下情况:所有项目都运行良好。然后,除了我已经集成的包“nfc_in_flutter”之外,我还下载了包“nfc_manager 3.0.0+1”。由于这不起作用,我再次删除了 nfc_manager 包。不久之后,出现了这个错误。我不知道它是否与此有关,但也许它有帮助。
现在我无法通过 Xcode 模拟我的任何项目。
我已经尝试了我在 Stack Overflow 上找到的关于这个问题的所有可能的解决方案 - 没有任何成功。另外,我已经登录并退出了keychain,重新启动了mac,完全卸载并重新下载了Xcode。
请帮忙。
nico@Nicos-MBP ios % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 2.2.0-11.0.pre.215, on Mac OS X 10.15.7 19H524 darwin-x64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)
• No issues found!
nico@Nicos-MBP ios % xcdoe clean
zsh: command not found: xcdoe
nico@Nicos-MBP ios % clean xcode
zsh: command not found: clean
nico@Nicos-MBP ios % flutter clean
Changing current working directory to: /Users/nico/AndroidStudioProjects/corona_impf_it
Cleaning Xcode workspace... 3,4s
Deleting build... 379ms
Deleting .dart_tool... 66ms
Deleting .packages... 0ms
Deleting Generated.xcconfig... 0ms
Deleting flutter_export_environment.sh... 0ms
Deleting Flutter.podspec... 0ms
Deleting .flutter-plugins-dependencies... 1ms
Deleting .flutter-plugins... 0ms
nico@Nicos-MBP ios % flutter run
Changing current working directory to: /Users/nico/AndroidStudioProjects/corona_impf_it
Running "flutter pub get" in corona_impf_it... 936ms
Launching lib/main.dart on iPhone 12 Pro in debug mode...
Running pod install... 10,8s
Running Xcode build...
Xcode build done. 224,7s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'gRPC-Core' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'leveldb-library' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'nanopb' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'gRPC-C++' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'abseil' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleUtilities' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseFirestore' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FirebaseAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'BoringSSL-GRPC' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flutter' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Firebase' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro.
解决方案
我在 Flutter 2.2.0 中遇到了同样的问题,并更新到修复程序 2.2.1 解决了这个问题。 https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel
推荐阅读
- jsxgraph - conditional update of line properties in jsxgraph
- python - 比较数千个文本文件内容的更有效方法
- java - Apache avro 只生成公共属性
- javascript - 'd3.nest()' 无法读取未定义的属性
- vb.net - VB.Net 检查 URL 是否有有效的图像
- sql - 过滤 2 万行的视图需要 30 分钟
- javascript - 过度迭代并轻松修改数据结构
- google-apps-script - 复制时展开公式
- c# - 如何使用查询表达式选择每个项目的最后 n 条历史记录
- kdb - q kdb 中的窗口连接