简体   繁体   English

无法在 iOS 仿真器或物理设备上构建 Flutter 应用程序 - 虽然在 Android 上工作正常

[英]Cannot build Flutter app on iOS emulator or physical device - works fine on Android though

I've returned to Android Studio & Flutter after some time away and I've tried to build my app and I get the following error:一段时间后,我回到了 Android Studio & Flutter,我尝试构建我的应用程序,但出现以下错误:

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...

Running pod install... CocoaPods' output: ↳ Preparing正在运行 pod install... 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 `url_launcher` from `.symlinks/plugins/url_launcher/ios`
-> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update

Comparing resolved specification to the sandbox manifest
  A Flutter
  A url_launcher
  A webview_flutter

Downloading dependencies

-> Installing Flutter (1.0.0)

-> Installing url_launcher (0.0.1)

-> Installing webview_flutter (0.0.1)
  - Running pre install hooks
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/ashleywhitehair/AndroidStudioProjects/cvonline-master/ios/Flutter/Flutter.framework)

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:595:in `validate_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:162: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 `8.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 11 Pro Max.运行 pod install 时出错 在 iPhone 11 Pro Max 上启动应用程序时出错。

Replace your whole pod file with the text below.用下面的文本替换整个 pod 文件。

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'

target 'testing_gowtham' do

use_frameworks!


pod 'Firebase/Core'
pod 'Firebase/Firestore'
end

If solution 1 is not working then you can also try the solution 2如果解决方案 1 不起作用,那么您也可以尝试解决方案 2

platform:ios, '9.0' is working...I simply removed # this platform:ios, '9.0'正在工作...我只是删除了#这个

暂无
暂无

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

相关问题 Flutter 应用程序在模拟器(Pixel 4)上呈现良好,但在物理设备上溢出 - Flutter app renders fine on the emulator (Pixel 4) but overflows on physical device 在物理设备上启动时,Android App卡在启动屏幕上,但在模拟器上运行良好 - Android App gets stuck on splashscreen when launched on physical device but works fine when on an emulator Android系统。 模拟器突然出现问题,物理设备正常运行 - Android. Sudden problem with emulator, physical device works fine Flutter Android 模拟器中的文本溢出,在 IOS 模拟器中工作正常 - Flutter text overflow in Android emulator, works fine in IOS emulator Flutter 应用程序在 Android 模拟器上运行,但不在物理设备上(OnePlus 7T) - Flutter app is running on Android Emulator but not on Physical Device (OnePlus 7T) 在flutter中从image_picker包中打开相机会导致真实设备上的应用程序崩溃,但在模拟器(android)中运行良好 - opening camera from image_picker package in flutter crashes app on real device but works fine in emulator (android) Flutter 电话身份验证在模拟器上工作正常,但在真实设备上不工作(Android) - Flutter Phone authentication works fine on emulator but not working on real device (Android) Android应用程式可在模拟器上正常运作,但在真实装置中当机 - Android app works fine in emulator but crashes in real device SQLite数据库Android应用程序在模拟器中无法在我的设备中正常运行 - SQLite database Android app works fine in emulator not in my device Android应用在模拟器上工作正常,但在设备上无效。 使用Internet连接 - Android app works fine on Emulator, but not on Device. Uses Internet Connection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM