Flutter:无法为设备构建预编译的应用程序。在iPhone上启动应用程序时出错

邦奇伤口

我无法在IOS设备上运行Flutter项目。

这是我扑扑后得到的。我不明白为什么。请查看下面的错误,并告诉我如何解决。

Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team
in Xcode project: L24VC6F98D
Running Xcode build...                                                  
Xcode build done.                                            8,2s
Failed to build iOS app
Error output from Xcode build:
↳
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h"
    is a member of multiple groups ("TOCropViewController" and
    "TOCropViewController"); this indicates a malformed project.  Only the
    membership in one of the groups will be preserved (but membership in targets
    will be unaffected).  If you want a reference to the same file in more than
    one group, please add another reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropOverlayView.h" is a member
    of multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group, please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h" is a
    member of multiple groups ("TOCropViewController" and "TOCropViewController");
    this indicates a malformed project.  Only the membership in one of the groups
    will be preserved (but membership in targets will be unaffected).  If you want
    a reference to the same file in more than one group, please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropScrollView.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group, please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropToolbar.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group, please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/Views/TOCropView.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group, please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for "Objective-C/TOCropViewController/TOCropViewController.h" is a member of
    multiple groups ("TOCropViewController" and "TOCropViewController"); this
    indicates a malformed project.  Only the membership in one of the groups will
    be preserved (but membership in targets will be unaffected).  If you want a
    reference to the same file in more than one group, please add another
    reference to the same path.
    2020-09-18 11:56:14.934 xcodebuild[29414:155421] warning:  The file reference
    for
    "Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h"
    is a member of multiple groups ("TOCropViewController" and
    "TOCropViewController"); this indicates a malformed project.  Only the
    membership in one of the groups will be preserved (but membership in targets
    will be unaffected).  If you want a reference to the same file in more than
    one group, please add another reference to the same path.
    2020-09-18 11:56:14.978 xcodebuild[29414:155477]  DTDeviceKit: deviceType from
    d94358f0937915cc1dbf618d6c7be90be0612766 was NULL
    2020-09-18 11:56:15.129 xcodebuild[29414:155486]  DTDeviceKit: deviceType from
    d94358f0937915cc1dbf618d6c7be90be0612766 was NULL
    2020-09-18 11:56:15.129 xcodebuild[29414:155486]  DTDeviceKit: deviceType from
    d94358f0937915cc1dbf618d6c7be90be0612766 was NULL
    ** BUILD FAILED **


Xcode's output:
↳
    Command CompileSwift failed with a nonzero exit code
    /Users/punreachrany/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/kakao
    _flutter_sdk-0.4.2/ios/Classes/SwiftKakaoFlutterSdkPlugin.swift:103:82: error:
    cannot convert value of type 'Error' to specified type
    'ASWebAuthenticationSessionError.Code'
                        if case ASWebAuthenticationSessionError.Code.canceledLogin
                        = err {
                                                                                     ^~~
    /Users/punreachrany/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/kakao
    _flutter_sdk-0.4.2/ios/Classes/SwiftKakaoFlutterSdkPlugin.swift:108:72: error:
    cannot convert value of type 'Error' to specified type
    'SFAuthenticationError.Code'
                        if case SFAuthenticationError.Code.canceledLogin = err {
                                                                           ^~~
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    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.0.99. (in
    target 'shared_preferences' from project 'Pods')
    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.0.99. (in
    target 'path_provider' from project 'Pods')
    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.0.99. (in
    target 'onesignal_flutter' from project 'Pods')
    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.0.99. (in
    target 'leveldb-library' from project 'Pods')
    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.0.99. (in
    target 'image_picker' from project 'Pods')
    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.0.99. (in
    target 'abseil' from project 'Pods')
    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.0.99. (in
    target 'package_info' from project 'Pods')
    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.0.99. (in
    target 'esys_flutter_share' from project 'Pods')
    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.0.99. (in
    target 'PromisesObjC' from project 'Pods')
    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.0.99. (in
    target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
    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.0.99. (in
    target 'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h (in
    target 'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropOverlayView.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Models/TOCroppedImageAttributes.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropScrollView.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropToolbar.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Views/TOCropView.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/TOCropViewController.h (in target
    'TOCropViewController' from project 'Pods')
    warning: Skipping duplicate build file in Copy Headers build phase:
    /Users/punreachrany/Desktop/Flutter/PhotoEarn/ios/Pods/TOCropViewController/Ob
    jective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h (in
    target 'TOCropViewController' from project 'Pods')
    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.0.99. (in
    target 'nanopb' from project 'Pods')
    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.0.99. (in
    target 'gRPC-C++-gRPCCertificates-Cpp' from project 'Pods')
    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.0.99. (in
    target 'GoogleDataTransport' from project 'Pods')
    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.0.99. (in
    target 'GTMSessionFetcher' from project 'Pods')
    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.0.99. (in
    target 'FBSDKCoreKit' from project 'Pods')
    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.0.99. (in
    target 'BoringSSL-GRPC' from project 'Pods')
    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.0.99. (in
    target 'BSImageView' from project 'Pods')
    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.0.99. (in
    target 'BSGridCollectionViewLayout' from project 'Pods')
    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.0.99. (in
    target 'GoogleUtilities' from project 'Pods')
    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.0.99. (in
    target 'GoogleDataTransportCCTSupport' from project 'Pods')
    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.0.99. (in
    target 'FBSDKLoginKit' from project 'Pods')
    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.0.99. (in
    target 'image_cropper' from project 'Pods')
    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.0.99. (in
    target 'GoogleAppMeasurement' from project 'Pods')
    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.0.99. (in
    target 'gRPC-C++' from project 'Pods')
    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.0.99. (in
    target 'OneSignal-iOS10.0' from project 'Pods')
    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.0.99. (in
    target 'Flutter' from project 'Pods')
    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.0.99. (in
    target 'gRPC-Core' from project 'Pods')
    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.0.99. (in
    target 'FirebaseFirestore' from project 'Pods')
    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.0.99. (in
    target 'FirebaseAuthInterop' from project 'Pods')
    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.0.99. (in
    target 'firebase_auth' from project 'Pods')
    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.0.99. (in
    target 'FirebaseCore' from project 'Pods')
    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.0.99. (in
    target 'firebase_core' from project 'Pods')
    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.0.99. (in
    target 'firebase_database' from project 'Pods')
    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.0.99. (in
    target 'cloud_firestore' from project 'Pods')
    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.0.99. (in
    target 'FirebaseAnalytics' from project 'Pods')
    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.0.99. (in
    target 'FirebaseInstallations' from project 'Pods')
    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.0.99. (in
    target 'FirebaseCoreDiagnosticsInterop' from project 'Pods')
    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.0.99. (in
    target 'FirebaseAuth' from project 'Pods')
    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.0.99. (in
    target 'FirebaseDatabase' from project 'Pods')
    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.0.99. (in
    target 'OneSignal-iOS11.0' from project 'Pods')
    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.0.99. (in
    target 'FirebaseStorage' from project 'Pods')
    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.0.99. (in
    target 'FirebaseCoreDiagnostics' from project 'Pods')
    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.0.99. (in
    target 'firebase_storage' from project 'Pods')
    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.0.99. (in
    target 'Firebase' from project 'Pods')

Could not build the precompiled application for the device.

Error launching application on iPhone.

我该怎么做才能解决此问题?请给我一个命令行或某物。请帮我。我期待着您的回音。谢谢。

詹姆斯666

如果您想立即对其进行仿真,而不是通常考虑解决IDE问题,请转到Xcode中的“工具”->“ Flutter”->“打开iOS模块”。但是,要获得进一步的解决方案,请执行Flutter Clean,然后从Xcode-> Window-> Devices and Simulators-> Simulators->右键单击iOS模拟器,然后单击删除将模拟器删除。然后,从与您所在的页面相同的“设备和模拟器”页面的左下角“ +”按钮添加一个新的模拟器。重新运行您的应用程序,它应该可以正常工作。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在设备上启动 Flutter 应用程序时出现问题“等待应用程序启动超时”

来自分类Dev

在设备上运行Beta iOS应用程序时出错

来自分类Dev

在设备上安装应用程序时出错

来自分类Dev

在Android 2.3设备上安装应用程序时出错

来自分类Dev

构建cordova应用程序时出错

来自分类Dev

构建应用程序时出错

来自分类Dev

构建 Angular 应用程序时出错

来自分类Dev

编译外国应用程序时出错

来自分类Dev

在Android Studio上构建应用程序时出错

来自分类Dev

启动应用程序时出错

来自分类Dev

启动我的应用程序时出错

来自分类Dev

在Eclipse上启动Java应用程序时出错

来自分类Dev

在物理iPhone上运行Flutter开发的应用程序时出错

来自分类Dev

在签署我的Flutter应用程序时,我无法构建该应用程序*已编辑*

来自分类Dev

预编译angular js模板以加快应用程序启动

来自分类Dev

桌面启动图标“启动应用程序时出错”

来自分类Dev

无法在iOS 10上为基于XCode 7.3构建的应用程序生成设备令牌

来自分类Dev

通过设备运行Android应用程序时出错

来自分类Dev

在树莓派的交叉编译Qt中构建应用程序时出错

来自分类Dev

在树莓派的交叉编译Qt中构建应用程序时出错

来自分类Dev

当我想用真实的设备测试我的应用程序时,该应用程序无法启动

来自分类Dev

在发布模式下构建uwp应用程序时出错

来自分类Dev

从Eclipse构建Java桌面应用程序时出错

来自分类Dev

构建角度通用应用程序时出错

来自分类Dev

使用Cordova for Android构建sencha应用程序时出错

来自分类Dev

使用离子构建phonegap应用程序时出错

来自分类Dev

构建我的 React 应用程序时出错 (UglifyJs)

来自分类Dev

使用 webpack 构建 angular 6 应用程序时出错

来自分类Dev

构建闪亮的应用程序时 fread 函数出错

Related 相关文章

  1. 1

    在设备上启动 Flutter 应用程序时出现问题“等待应用程序启动超时”

  2. 2

    在设备上运行Beta iOS应用程序时出错

  3. 3

    在设备上安装应用程序时出错

  4. 4

    在Android 2.3设备上安装应用程序时出错

  5. 5

    构建cordova应用程序时出错

  6. 6

    构建应用程序时出错

  7. 7

    构建 Angular 应用程序时出错

  8. 8

    编译外国应用程序时出错

  9. 9

    在Android Studio上构建应用程序时出错

  10. 10

    启动应用程序时出错

  11. 11

    启动我的应用程序时出错

  12. 12

    在Eclipse上启动Java应用程序时出错

  13. 13

    在物理iPhone上运行Flutter开发的应用程序时出错

  14. 14

    在签署我的Flutter应用程序时,我无法构建该应用程序*已编辑*

  15. 15

    预编译angular js模板以加快应用程序启动

  16. 16

    桌面启动图标“启动应用程序时出错”

  17. 17

    无法在iOS 10上为基于XCode 7.3构建的应用程序生成设备令牌

  18. 18

    通过设备运行Android应用程序时出错

  19. 19

    在树莓派的交叉编译Qt中构建应用程序时出错

  20. 20

    在树莓派的交叉编译Qt中构建应用程序时出错

  21. 21

    当我想用真实的设备测试我的应用程序时,该应用程序无法启动

  22. 22

    在发布模式下构建uwp应用程序时出错

  23. 23

    从Eclipse构建Java桌面应用程序时出错

  24. 24

    构建角度通用应用程序时出错

  25. 25

    使用Cordova for Android构建sencha应用程序时出错

  26. 26

    使用离子构建phonegap应用程序时出错

  27. 27

    构建我的 React 应用程序时出错 (UglifyJs)

  28. 28

    使用 webpack 构建 angular 6 应用程序时出错

  29. 29

    构建闪亮的应用程序时 fread 函数出错

热门标签

归档