简体   繁体   English

无法在 ios 模拟器上运行我的 flutter 应用程序,该模拟器在 android 模拟器上完美运行。 运行 pod install 时出错

[英]Unable to run my flutter app on ios simulator which is working perfectly on android simulator. Error running pod install

A collaborator created this project in windows and I have cloned it in my m1 macs and trying to run it in the ios simulator.一位合作者在 windows 中创建了这个项目,我将它克隆到我的 m1 mac 中并尝试在 ios 模拟器中运行它。 These are the logs when I do flutter run in my project folder.这些是我在项目文件夹中flutter run时的日志。

Launching lib/main.dart on iPhone 12 Pro Max in debug mode...在调试模式下在 iPhone 12 Pro Max 上启动 lib/main.dart...

Running pod install... 860ms运行 pod install... 860ms

CocoaPods' output: ↳ Preparing CocoaPods 的 output:↳ 准备中

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 `better_player` from `.symlinks/plugins/better_player/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
firebase_auth: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
firebase_core: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
-> Fetching podspec for `flutter_ffmpeg` from `.symlinks/plugins/flutter_ffmpeg/ios`
-> Fetching podspec for `gallery_saver` from `.symlinks/plugins/gallery_saver/ios`
-> Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `photo_manager` from `.symlinks/plugins/photo_manager/ios`
-> Fetching podspec for `simple_image_crop` from `.symlinks/plugins/simple_image_crop/ios`
-> Fetching podspec for `stripe_payment` from `.symlinks/plugins/stripe_payment/ios`
-> Fetching podspec for `vibration` from `.symlinks/plugins/vibration/ios`
-> Fetching podspec for `video_player` from `.symlinks/plugins/video_player/ios`
-> Fetching podspec for `video_thumbnail` from `.symlinks/plugins/video_thumbnail/ios`
-> Fetching podspec for `wakelock` from `.symlinks/plugins/wakelock/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
  CDN: trunk Relative path: all_pods_versions_2_5_a.txt exists! Returning local because checking is only perfomed in repo update
  CDN: trunk Relative path: Specs/2/5/a/KTVHTTPCache/2.0.1/KTVHTTPCache.podspec.json exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "firebase_auth":
  In Podfile:
    firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)

Specs satisfying the `firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)` dependency were found, but they required a higher minimum deployment target.

/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods: ↳来自 CocoaPods 的错误 output:↳

[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install Error launching application on iPhone 12 Pro Max.运行 pod install 时出错 在 iPhone 12 Pro Max 上启动应用程序时出错。

In the podfile try assigning ios version to 10. This error as been bugging me for days now.在 podfile 中尝试将 ios 版本分配给 10。这个错误已经困扰我好几天了。 I am not sure but this may fix it.我不确定,但这可能会解决它。

Please try to increment the minimum deployment target at ios/flutter/AppFrameworkInfo.plist , named MinimumOSVersion .请尝试在ios/flutter/AppFrameworkInfo.plist中增加最小部署目标,命名为MinimumOSVersion Also try incrementing the deployment target in ios/Podfile :还可以尝试在ios/Podfile中增加部署目标:

source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
...

Extracted from this answer and this other one这个答案另一个中提取

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase 不能与 iOS 模拟器一起运行。 Flutter - Firebase won't run with iOS simulator. Flutter 为我的 flutter 应用程序运行 IOS 模拟器时出现问题 - Problem with running IOS simulator for my flutter app 如何检查 iOS 应用程序是否在模拟器上运行。 (目标-c) - How to check if an iOS app is running on the simulator. (objective-c) Flutter ios“无法为模拟器构建应用程序。” - Flutter ios " Could not build the application for the simulator." 应用程式适用于ios 4.3模拟器,但不适用于ios 5模拟器。 有任何想法吗? - App works for ios 4.3 simulator, but not ios 5 simulator. Any ideas? 处理 Podfile 的安装后挂钩时出错。 无法在 iOS 模拟器上运行颤振项目得到 pod 错误 - An error occurred while processing the post-install hook of the Podfile. Not able to run flutter project on iOS simulator getting pod error 无法在命令行上安装和运行模拟器上的iOS应用程序 - 适用于小牛队的iOS 6.1 Xcode 5的模拟器 - Unable to install and run iOS app on Simulator from command line - Simulator of iOS 6.1 Xcode 5 on mavericks Flutter 构建 iOS 失败 - Xcode 构建错误 - iOS 模拟器完美运行 - Flutter build iOS Failed - Xcode build error - iOS simulator working perfectly 无法在 ios 模拟器上运行我的 flutter 应用程序 - Can't run my flutter app on an ios simulator 无法在使用 Agora iOS SDK 的模拟器上运行我的应用程序 - Not able to run my app on Simulator which using Agora iOS SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM