【问题标题】:Flutter Error output from Xcode build after upgrading flutter升级颤振后 Xcode 构建的颤振错误输出
【发布时间】:2021-03-05 00:10:43
【问题描述】:

我尝试了很多flutter clean和pod文件删除ios文件夹等几乎所有但仍然收到错误。

这是我运行颤振运行后得到的结果。

            Running pod install...                                              7.8s
        Running Xcode build...                                                  
        └─Compiling, linking and signing...                         5.3s
        Xcode build done.                                           44.2s
        Failed to build iOS app
        Error output from Xcode build:
        ↳
            2020-11-22 04:23:48.714 xcodebuild[18120:174376] 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-11-22 04:23:48.714 xcodebuild[18120:174376] 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-11-22 04:23:48.715 xcodebuild[18120:174376] 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-11-22 04:23:48.715 xcodebuild[18120:174376] 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-11-22 04:23:48.715 xcodebuild[18120:174376] 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-11-22 04:23:48.715 xcodebuild[18120:174376] 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-11-22 04:23:48.715 xcodebuild[18120:174376] 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-11-22 04:23:48.715 xcodebuild[18120:174376] 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.
            ** BUILD FAILED **


        Xcode's output:
        ↳
            While building module 'Flutter' imported from /Users/mdzainalabedin/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/ios/Classes/FLTURLLauncherPlugin.h:5:
            In file included from <module-includes>:1:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/Flutter.h:8:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
            /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:13:10: warning: double-quoted include "FlutterCodecs.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
            #include "FlutterCodecs.h"
                    ^~~~~~~~~~~~~~~~~
                    <Flutter/FlutterCodecs.h>
            /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:14:10: warning: double-quoted include "FlutterPlatformViews.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
            #include "FlutterPlatformViews.h"
                    ^~~~~~~~~~~~~~~~~~~~~~~~
                    <Flutter/FlutterPlatformViews.h>
            While building module 'Flutter' imported from /Users/mdzainalabedin/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/ios/Classes/FLTURLLauncherPlugin.h:5:
            In file included from <module-includes>:1:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/Flutter.h:8:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:14:
            /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlatformViews.h:10:9: warning: double-quoted include "FlutterCodecs.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
            #import "FlutterCodecs.h"
                    ^~~~~~~~~~~~~~~~~
                    <Flutter/FlutterCodecs.h>
            /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlatformViews.h:11:9: warning: double-quoted include "FlutterMacros.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
            #import "FlutterMacros.h"
                    ^~~~~~~~~~~~~~~~~
                    <Flutter/FlutterMacros.h>
            While building module 'Flutter' imported from /Users/mdzainalabedin/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/ios/Classes/FLTURLLauncherPlugin.h:5:
            In file included from <module-includes>:1:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/Flutter.h:8:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
            /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:15:10: warning: double-quoted include "FlutterTexture.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
            #include "FlutterTexture.h"
                    ^~~~~~~~~~~~~~~~~~
                    <Flutter/FlutterTexture.h>
            While building module 'Flutter' imported from /Users/mdzainalabedin/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.5.0/ios/Classes/FLTURLLauncherPlugin.h:5:
            In file included from <module-includes>:1:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/Flutter.h:8:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
            In file included from /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:15:
            /Users/mdzainalabedin/padelmatchv2/ios/Flutter/Flutter.framework/Headers/FlutterTexture.h:11:10: warning: double-quoted include "FlutterMacros.h" in framework header, expected angle-bracketed instead [-Wquoted-include-in-framework-header]
            #include "FlutterMacros.h"
                    ^~~~~~~~~~~~~~~~~

【问题讨论】:

    标签: flutter flutter-dependencies flutter-ios


    【解决方案1】:

    我同时更新了 Flutter、Cocoapods 和 Xcode。在那之后,我的 Flutter 项目都没有为 iOS 构建。

    什么对我有用 -> 在你的项目中运行它:

    sudo gem install cocoapods --pre

    flutter run -> 应用再次运行!

    【讨论】:

      猜你喜欢
      • 2021-11-01
      • 2021-06-06
      • 2018-12-24
      • 2020-07-22
      • 1970-01-01
      • 2020-02-28
      • 2023-02-02
      • 2021-03-20
      • 2021-06-17
      相关资源
      最近更新 更多