【发布时间】:2021-11-17 16:08:59
【问题描述】:
我是 Flutter 的 ios 开发新手。尝试在 ios 模拟器和外部设备 (iphone xr) 上构建应用程序时,出现以下错误--
objc[50354]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f3d2c188) and ?? (0x1184482b8). One of the two will be used. Which one is undefined.
objc[50354]: Class AMSupportURLSession is implemented in both ?? (0x1f3d2c1d8) and ?? (0x118448308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
FirebaseAnalytics-framework-aginbutuetuehmfqavbftszulegx
/Users/.../ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'cloud_firestore' not found
@import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
FirebaseAnalytics-framework-aginbutuetuehmfqavbftszulegx
/Users/.../ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'cloud_firestore' not found
@import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
FirebaseAnalytics-framework-aginbutuetuehmfqavbftszulegx
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
除此之外,我在 XCode AppDelegate.swift 中遇到错误,它说——“Flutter.h not found”
我在这个问题上被困了 2 周,并且已经尝试了几乎所有可用的解决方案。
请帮忙!
问候
【问题讨论】:
标签: ios xcode flutter apple-m1 flutter-ios