Android Studio (Xcode 14.2)命令PhaseScriptExecution失败,退出代码为非零

yc0p9oo0  于 2023-05-01  发布在  Android
关注(0)|答案(1)|浏览(206)

Flutter Doctor:

MacBOOKs-MacBook-Pro:Parcelstar-Merchant-Flutter macbook$ flutter doctor -v [✓] Flutter(Channel stable,3.3.9,在macOS 12上。6 21 G115 darwin-x64,locale en-US)· Flutter版本3。3.9 on channel stable at /Users/macbook/Development/flutter · Upstream repository https://github.com/flutter/flutter.git · Framework revision b8f7f1f986(5 months ago),2022-11-23 06:43:51 +0900 · Engine revision 8f2221fbef · Dart version 2.18.5 · DevTools版本2。15.0
[✓] Android工具链-为Android设备开发(Android SDK版本33。0.1)· Android SDK at /Users/macbook/Library/Android/sdk ·平台android-33,build-tools 33.0.1 · Java二进制:/应用程序/ www.example.com · Java版本OpenJDK运行时环境(build 11.0.13+0-b1751。21-8125866)·接受所有Android许可证。
[✓] Xcode -为iOS和macOS开发(Xcode 14.2)· Xcode at /Applications/ www.example.com · Build 14 C18· CocoaPods版本1。11.3
[✓] Chrome -为Web开发· Chrome at /Applications/Google www.example.com Chrome
[✓] Android Studio(2021版)3)· Android Studio at /Applications/ www.example.com · Flutter插件可以安装在:x1🔨e1f1x· Dart插件可以安装在:·🔨Java版本OpenJDK Runtime Environment(build 11.0.13+0-b1751。21-8125866)
IntelliJ IDEA社区版(2022版)3.1)· IntelliJ at /Applications/IntelliJ IDEAwww. example www.example.com · Flutter插件可以安装在:x1🔨e3f1x· Dart插件可以从以下位置安装:🔨https://plugins.jetbrains.com/plugin/6351-dart
[✓]连接设备(3可用)· iPhone 5s(移动的)·cfd 946 de 749 b8 b2937909 b5 f5 d586 aeee 720 bc 28· ios · iOS 12.5.7 16H81 · macOS(desktop)· macos · darwin-x64 · macOS 12.6 21G115 darwin-x64 · Chrome(web)· chrome · web-javascript · Google Chrome 112.0.5615.137
HTTP主机可用性·所有必需的HTTP主机都可用
·未发现问题!MacBooks-MacBook-Pro:Parcelstar-Merchant-Flutter macbook$

Android Studio控制台

启动lib/main。dart在iPhone 5s上处于调试模式。..更新最低iOS部署目标为11。0.升级Podfile在Xcode项目中使用指定开发团队自动签署iOS进行设备部署:548 DQPU 297运行pod安装。.. CocoaPods的输出:准备

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `connectivity` from `.symlinks/plugins/connectivity/ios`
-> Fetching podspec for `connectivity_plus` from `.symlinks/plugins/connectivity_plus/ios`
-> Fetching podspec for `flutter_facebook_auth` from `.symlinks/plugins/flutter_facebook_auth/ios`
-> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`
-> Fetching podspec for `image_picker_ios` from `.symlinks/plugins/image_picker_ios/ios`
-> Fetching podspec for `package_info_plus` from `.symlinks/plugins/package_info_plus/ios`
-> Fetching podspec for `path_provider_foundation` from `.symlinks/plugins/path_provider_foundation/ios`
-> Fetching podspec for `permission_handler_apple` from `.symlinks/plugins/permission_handler_apple/ios`
-> Fetching podspec for `shared_preferences_foundation` from `.symlinks/plugins/shared_preferences_foundation/ios`
-> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
-> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_c_7_9.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/c/7/9/Reachability/3.2/Reachability.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_d_d_6.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/d/d/6/ReachabilitySwift/5.0.0/ReachabilitySwift.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_b_3_c.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/b/3/c/FBSDKLoginKit/15.1.0/FBSDKLoginKit.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_4_2_c.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/4/2/c/FlutterMacOS/3.0.0/FlutterMacOS.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_f_4_e.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/f/4/e/FMDB/2.7.5/FMDB.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/b/3/c/FBSDKLoginKit/15.1.0/FBSDKLoginKit.podspec.json exists! Returning local because checking is only performed in repo update
[!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit":
  In Podfile:
    flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`) was resolved to 5.0.4, which depends on
      FBSDKLoginKit (~> 15.1.0)

Specs satisfying the `FBSDKLoginKit (~> 15.1.0)` dependency were found, but they required a higher minimum deployment target.

/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:317:in `raise_error_unless_state'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:299:in `block in unwind_for_conflict'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `tap'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:297:in `unwind_for_conflict'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:682:in `attempt_to_activate'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/resolver.rb:94:in `resolve'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:1078:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:1076:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:416:in `analyze'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:240:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:161:in `install!'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.11.3/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.11.3/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.11.3/libexec/bin/pod:23:in `<main>'

异常:运行pod安装时出错
我已从“运行脚本”中删除了数据。但它不工作

  • 〉目标-〉转到构建设置-〉单击运行脚本-〉删除脚本数据
dffbzjpn

dffbzjpn1#

IMHO,FBSDKLoginKit要求iOS最低部署目标为12。0,而你的是11,所以它找不到满意的版本,所以它停止了构建过程。
参考:https://github.com/facebook/facebook-ios-sdk/blob/main/FBSDKLoginKit.podspec
s.ios.deployment_target = '12.0'

相关问题