自 iOS 14 更新以来我遇到了问题。最初它是部署目标 8.0,每次我从 Git 中的存储库中提取数据时,都可以通过更新 GoogleInfoPlist 来暂时修复它。但过了一段时间,这个临时修复就不再起作用了。我的 FlutterFire 插件遇到标头问题。
\n\n\n警告:在框架头文件中用双引号包含“FLTFirebaseCorePlugin.h”,预期使用尖括号 [-Wquoted-include-in-framework-header]\n#import "FLTFirebaseCorePlugin.h"\n^~~~~~~ ~~~~~~~~~~~~~~~~~~\n<firebase_core/FLTFirebaseCorePlugin.h>
\n
在 flutterfire 迁移指南的帮助下,我已将已弃用的 Firebase 核心、身份验证和 firestore 插件更新为最新版本。之后firebase插件问题得到解决。但我仍然遇到 2 个插件的问题:Google Maps Flutter 和 Image Picker。我解决这个问题的方法是将 Cocoapods 更新到 Google 地图插件的测试版,但当我从应用程序中删除该插件时,图像选择器仍然存在问题。
\n之后我得到了 3 个错误。第一个是 Runner Error 内的 CodeSign 循环:
\n\n\n错误:Runner内部循环;构建可能会产生不可靠的结果。目标“Runner”:CodeSign /Users/user/StudioProjects/app/build/ios/Debug-iphonesimulator/Runner.app\n\xe2\x97\x8b 目标“Runner”具有来自“/”的复制命令用户/vaisatriani/StudioProjects/kuliner_11_app/build/ios/Debug-iphonesimulator/Runner.app' 到
\n
我搜索了修复程序,发现 flutter clean 可以修复该错误。错误确实消失了,但又出现了一个新错误:
\n\n\n错误:'/Users/用户名/StudioProjects/appname/build/ios/Debug-iphonesimulator/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner。应用程序/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/ Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner。应用程序/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/ Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner。应用程序/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/ Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner.app/Runner。 app/Runner.app/GoogleService-Info.plist' 比文件路径缓冲区大小 (1025) 长。(在项目“Runner”的目标“Runner”中)
\n
我以某种方式通过从 XCode 中的产品中删除作为目标的 Runner 来修复它。但现在我陷入了这个错误。
\n\n无法在 FFF556AF-19DB-4B7B-93BF-A67EE0EA8621 上安装 …