首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Flutter: IOS无法为设备2021生成预编译的应用程序

Flutter: IOS无法为设备2021生成预编译的应用程序
EN

Stack Overflow用户
提问于 2021-02-01 18:59:30
回答 1查看 812关注 0票数 0

在调试模式下启动Kingman的iPhone上的lib/main_dev.dart ...使用Xcode项目中指定的开发团队为设备部署自动签名iOS :运行Xcode build的FK3FA23S5A ...由于并发生成,Xcode生成失败,将在2秒后重试。Xcode构建完成。134.1s无法构建iOS应用程序Xcode build的错误输出:

代码语言:javascript
复制
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/kingman/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+12/ios/Classes/FLTImagePickerPlugin.m:149:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
        [[[UIAlertView alloc] initWithTitle:@"Error"
                       ^
    In module 'UIKit' imported from /Users/kingman/Desktop/HLH/projects/ios/Pods/Target Support Files/image_picker/image_picker-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
    1 warning generated.
    /Users/kingman/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/qr_code_scanner-0.2.1/ios/Classes/QRView.swift:66:13: warning: 'UIAlertView' was deprecated in iOS 9.0: UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
                UIAlertView(title: "Scanning Unavailable", message: "This app does not have permission to access the camera", delegate: nil, cancelButtonTitle: nil, otherButtonTitles: "Ok").show()
                ^
    /Users/kingman/Desktop/HLH/projects/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/FIRMessagingPubSub.m:283:12: warning: parameter 'expression' not found in the function declaration [-Wdocumentation]
     *  @param expression The topic expression used to generate a pubsub topic
               ^~~~~~~~~~
    /Users/kingman/Desktop/HLH/projects/ios/Pods/FirebaseMessaging/FirebaseMessaging/Sources/FIRMessagingPubSub.m:283:12: note: did you mean 'topic'?
     *  @param expression The topic expression used to generate a pubsub topic
               ^~~~~~~~~~
               topic
    1 warning generated.
    /Users/kingman/Desktop/HLH/projects/ios/Pods/gRPC-C++/src/cpp/server/async_generic_service.cc:19:10: fatal error: 'grpcpp/generic/async_generic_service.h' file not found
    #include <grpcpp/generic/async_generic_service.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/kingman/Desktop/HLH/projects/ios/Pods/gRPC-C++/src/cpp/server/async_generic_service.cc:19:10: note: did not find header 'generic/async_generic_service.h' in framework 'grpcpp' (loaded from '/Users/kingman/Desktop/HLH/projects/build/ios/Debug-dev-iphoneos/gRPC-C++')
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Using build description from disk

Could not build the precompiled application for the device.

Error launching application on Kingman’s iPhone.
EN

回答 1

Stack Overflow用户

发布于 2021-11-19 18:46:29

运行flutter clean通常会为我解决这个问题。您可以尝试的另一种方法是生成一个新的ios版本。您可以删除Flutter项目上的/ios文件夹,然后使用flutter create --platforms=ios [PROJECT]生成一个新文件夹

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65991481

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档