程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错?

开发过程中遇到无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错的问题如何解决?下面主要结合日常开发的经验,给出你关于无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错的解决方法建议,希望对你解决无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错有所启发或帮助;

一个合作者在 windows 中创建了这个项目,我已经在我的 m1 macs 中克隆了它并尝试在 ios 模拟器中运行它。 这些是我在项目文件夹中执行 Flutter run 时的日志。

在调试模式下在 iPhone 12 Pro Max 上启动 lib/main.dart...

正在运行 pod 安装... 860 毫秒

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 `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>'

CocoaPods 的错误输出: ↳

[!] 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`.

运行 pod install 时出错 在 iPhone 12 Pro Max 上启动应用程序时出错。

解决方法

在 podfile 中尝试将 ios 版本分配给 10。这个错误已经困扰我好几天了。我不确定,但这可能会解决它。

大佬总结

以上是大佬教程为你收集整理的无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错全部内容,希望文章能够帮你解决无法在 ios 模拟器上运行我的 flutter 应用程序,该应用程序在 android 模拟器上运行良好。运行 pod install 时出错所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。