当前位置: 首页 > 知识库问答 >
问题:

将颤振升级到2.3.0-1.0.pre后,颤振iOS构建失败。267或Firebase软件包

胡俊弼
2023-03-14

我最近刚刚将flutter版本更新到2.3.0-1.pre.267,并按照IDE的建议更新了软件包。现在我无法构建iOS应用程序。我确实尝试了flutter、Google登录和堆栈溢出的GH问题中几乎所有提供的建议/修复。我做了pod清理、pod重新集成、xcworkspace设置文件删除和其他一些建议。

请在下面找到详细信息,并提供您的建议/帮助/反馈,以帮助我解决此问题。应用程序构建对于Android来说很好,而且工作也很完美。

颤振2.3.0-1.0.pre。267•通道主控•https://github.com/flutter/flutter.git框架•版本411eeb4155(22小时前)•2021-05-08 23:34:01-0700引擎•版本1825befbc7工具•Dart 2.14.0(构建2.14.0-74.0。开发)

医生总结(要查看所有详细信息,请运行flutter Doctor-v):[✓] 颤振(Channel master,2.3.0-1.0.pre.267,在macOS 11.2.3 20D91 darwin-x64上,语言环境en-IN)[✓] Android工具链-为Android设备开发(Android SDK版本30.0.2)[✓] Xcode-为iOS和macOS开发[✓] Chrome-为web开发[✓] Android Studio(4.1版)[✓] 连接的设备(2个可用)

•未发现任何问题!

请查找pubspec。yaml文件在这里。(由于格式问题,上传到pastebin)

  • 只需在项目根目录中运行命令flatter build ios

在儿童中运行“flutter pub get”…1311ms Building dev.bipin。kids for device(ios release)…使用Xcode项目中的指定开发团队自动签署设备部署的ios:xxxxx运行pod安装…7.0s运行Xcode构建…
└─编译、链接和签名…16.4s Xcode构建完成。281.0s无法从Xcode生成生成iOS应用程序错误输出:↳ ** 生成失败**

Xcode的输出: /Users/bipinvaylu/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.4/ios/Classes/FLTImagePickerPlugin.m: 149:20:警告:'UIAlertView'已弃用:iOS9.0首次弃用-UIAlertView已弃用。使用UIAlertController和UIAlertControlllerStyleAlert的首选样式来代替[-WDeprecated-声明][[[UIAlertView alloc]initSusTitle: NSLocalizedString(@"Error", nil)^在从 /Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Target支持文件/image_picker/image_picker-prefix.pch导入的模块'UIKit'中:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView. h: 27:12:注意:'UIAlertView'已在此处明确标记为弃用@接口UIAlertView: UIView^1警告生成。/Users/bipinvaylu/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.4/ios/Classes/FLTImagePickerPhotoAssetUtil.m: 17:44:警告:'UIImagePickerControlllerRe传染ceURL'已弃用:iOS11.0首次弃用-将在未来版本中删除,请使用PHPicker。[-WDeprecated-声明]NSURL*引用URL=[info对象ForKey: UIImagePickerControlllerReector ceURL];^在从 /Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Target支持文件/image_picker/image_picker-prefix.pch导入的模块'UIKit'中: 2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIImagePickerController. h: 62:51:注意:'UIImagePickerControlllerRecm ceURL'已在此处明确标记为弃用UIKIT_EXTERNUIImagePickerControlllerInfoKey const UIImagePickerControlllerRecm ceURLAPI_DEPRECATED("将在未来版本中删除,使用PHPicker.",ios(4.1, 11.0))API_UNAVAILABLE(tvos);//引用AssetsLibrary框架中资产的NSURL^ /Users/bipinvaylu/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.7.4/ios/Classes/FLTImagePickerPhotoAssetUtil.m: 21:47:警告:'fetchAssetsAuthALAssetURLs:选项:'已弃用:在iOS11中首次弃用-将在未来版本中删除[-WDeprecated-声明]PHFetchResult

Validation succeeded. Exiting because upload-symbols was run in validation mode
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
/Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target
'Toast' from project 'Pods')
/Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target
'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
/Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target
'TOCropViewController' from project 'Pods')
/Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target
'AppAuth' from project 'Pods')
/Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target
'GoogleSignIn' from project 'Pods')
/Users/bipinvaylu/Documents/Work/Workspaces/kids-flutter-mobile-app/kids/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target
'Flutter' from project 'Pods')

为设备生成时遇到错误。

共有1个答案

夹谷斌蔚
2023-03-14

这里发生了两件事。

>

  • 警告部署目标iOS不匹配。请参阅此答案以消除它。

    与缺少dsym文件相关的错误。您正在使用Crashlytics,它需要dsym文件。现在,在调试模式下,默认情况下,在任何Xcode项目中,这些dsym文件都不会生成,如下图所示。

    但是,您可以在这里为整个项目手动设置,也可以将Crashlytics更新为最新版本,因为从2.5.0开始,它们在podfile中自行设置。

  •  类似资料:
    • 注意:使用-Xlint重新编译:详细信息请参阅弃用。D8:程序类型已存在:android。支持v4.os。ResultReceiver$MyResultReceiver 失败:构建失败,但有例外。 > 错误:任务执行失败:应用程序:transformDexArchiveWithExternalLibsDexMergerForDebug”。 通用域名格式。Android建设者德兴。DexArchiv

    • 我想问一下IOS的实施情况 当前场景:基本上,我已经在android平台上开发了该应用程序,现在我想将其转换为IOS平台。由于这是我的第一个应用程序,我真的需要一些有经验的声音来解决我面临的一些问题。 问题: 1-是否有任何简单的方法来检测当前使用的Widget是Android/IOS平台?我们如何才能确定特定的小部件是Android平台的,并且在IOS平台上不工作,反之亦然。 2 -如果我们以某

    • Windows PowerShell版权所有(C)微软公司。版权所有。尝试新的跨平台PowerShellhttps://aka.ms/pscore6PS C:\用户\联想\桌面\Android

    • Xcode的输出:在文件中包含从 /Users/dani/development/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.3/ios/Classes/FLTURLLauncherPlugin.m: 7: /Users/dani/development/flutter/.pub-cache/hosted/pub.dart

    • 为什么我会出现以下错误?突然,它开始出现这个错误。 失败:生成失败,出现异常。 > 其中:脚本'C:\src\flutter\package\flutter_tools\gradle\flutter.gradle'行:1070 错误:任务:app:compileFlutterBuildDebug的执行失败。 处理“命令”C:\src\flatter\bin\flatter。bat“”以非零退出值1

    • 我正在构建一个聊天应用程序flutter页面,我的Textfield/Send按钮行不断消失,我得到以下错误... 'package:flutter/src/rendering/box.dart':断言失败:第1446行pos 12:'havs size':RenderBox未布局:renderpointerlistener#da9fd needs-layout needs-paint 该页面构建