Flutter踩坑之 Could not build the application for the simulatorError launching application on iPhone 11

今天在iOS模拟器上运行flutter项目,结果报错如下:

Launching lib/cn/xinzhili/patient/ui/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done.                                           24.2s
Failed to build iOS app
Error output from Xcode build:** BUILD FAILED **


Xcode's output:=== BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:26:31: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
    - (void)safariViewController:(SFSafariViewController *)controller
                                  ^
    In module 'SafariServices' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:5:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface SFSafariViewController : UIViewController
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:26:1: note: annotate 'safariViewController:didCompleteInitialLoad:' with an availability attribute to silence this warning
    - (void)safariViewController:(SFSafariViewController *)controller
    ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:38:40: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
    - (void)safariViewControllerDidFinish:(SFSafariViewController *)controller {
                                           ^
    In module 'SafariServices' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:5:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface SFSafariViewController : UIViewController
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:38:1: note: annotate 'safariViewControllerDidFinish:' with an availability attribute to silence this warning
    - (void)safariViewControllerDidFinish:(SFSafariViewController *)controller {
    ^
                                                                                API_AVAILABLE(ios(9.0))
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:94:18: warning: 'openURL:options:completionHandler:' is only available on iOS 10.0 or newer [-Wunguarded-availability]
        [application openURL:url
                     ^~~~~~~~~~~
    In module 'UIKit' imported from /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/ios/Pods/Target Support Files/url_launcher/url_launcher-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:130:1: note: 'openURL:options:completionHandler:' has been marked as being introduced in iOS 10.0 here, but the deployment target is iOS 8.0.0
    - (void)openURL:(NSURL*)url options:(NSDictionary<UIApplicationOpenExternalURLOptionsKey, id> *)options completionHandler:(void (^ __nullable)(BOOL success))completion API_AVAILABLE(ios(10.0)) NS_EXTENSION_UNAVAILABLE_IOS("");
    ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:94:18: note: enclose 'openURL:options:completionHandler:' in an @available check to silence this warning
        [application openURL:url
                     ^~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:122:3: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      SFSafariViewController *safari = [[SFSafariViewController alloc] initWithURL:url];
      ^~~~~~~~~~~~~~~~~~~~~~
    In module 'SafariServices' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:5:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface SFSafariViewController : UIViewController
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:122:3: note: enclose 'SFSafariViewController' in an @available check to silence this warning
      SFSafariViewController *safari = [[SFSafariViewController alloc] initWithURL:url];
      ^~~~~~~~~~~~~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:122:38: warning: 'SFSafariViewController' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      SFSafariViewController *safari = [[SFSafariViewController alloc] initWithURL:url];
                                         ^~~~~~~~~~~~~~~~~~~~~~
    In module 'SafariServices' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:5:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h:27:12: note: 'SFSafariViewController' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface SFSafariViewController : UIViewController
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-4.0.1/ios/Classes/UrlLauncherPlugin.m:122:38: note: enclose 'SFSafariViewController' in an @available check to silence this warning
      SFSafariViewController *safari = [[SFSafariViewController alloc] initWithURL:url];
                                         ^~~~~~~~~~~~~~~~~~~~~~
    5 warnings generated.
    === BUILD TARGET video_player OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:33:52: warning: 'WKWebsiteDataTypeCookies' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      NSSet *websiteDataTypes = [NSSet setWithArray:@[ WKWebsiteDataTypeCookies ]];
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    In module 'WebKit' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.h:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h:45:28: note: 'WKWebsiteDataTypeCookies' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    WK_EXTERN NSString * const WKWebsiteDataTypeCookies API_AVAILABLE(macos(10.11), ios(9.0));
                               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:33:52: note: enclose 'WKWebsiteDataTypeCookies' in an @available check to silence this warning
      NSSet *websiteDataTypes = [NSSet setWithArray:@[ WKWebsiteDataTypeCookies ]];
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:34:3: warning: 'WKWebsiteDataStore' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      WKWebsiteDataStore *dataStore = [WKWebsiteDataStore defaultDataStore];
      ^~~~~~~~~~~~~~~~~~
    In module 'WebKit' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.h:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:39:12: note: 'WKWebsiteDataStore' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface WKWebsiteDataStore : NSObject <NSSecureCoding>
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:34:3: note: enclose 'WKWebsiteDataStore' in an @available check to silence this warning
      WKWebsiteDataStore *dataStore = [WKWebsiteDataStore defaultDataStore];
      ^~~~~~~~~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:34:36: warning: 'WKWebsiteDataStore' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      WKWebsiteDataStore *dataStore = [WKWebsiteDataStore defaultDataStore];
                                       ^~~~~~~~~~~~~~~~~~
    In module 'WebKit' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.h:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h:39:12: note: 'WKWebsiteDataStore' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface WKWebsiteDataStore : NSObject <NSSecureCoding>
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:34:36: note: enclose 'WKWebsiteDataStore' in an @available check to silence this warning
      WKWebsiteDataStore *dataStore = [WKWebsiteDataStore defaultDataStore];
                                       ^~~~~~~~~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:36:35: warning: 'WKWebsiteDataRecord' is only available on iOS 9.0 or newer [-Wunguarded-availability]
      void (^deleteAndNotify)(NSArray<WKWebsiteDataRecord *> *) =
                                      ^~~~~~~~~~~~~~~~~~~
    In module 'WebKit' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.h:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h:64:12: note: 'WKWebsiteDataRecord' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface WKWebsiteDataRecord : NSObject
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:36:35: note: enclose 'WKWebsiteDataRecord' in an @available check to silence this warning
      void (^deleteAndNotify)(NSArray<WKWebsiteDataRecord *> *) =
                                      ^~~~~~~~~~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:37:17: warning: 'WKWebsiteDataRecord' is only available on iOS 9.0 or newer [-Wunguarded-availability]
          ^(NSArray<WKWebsiteDataRecord *> *cookies) {
                    ^~~~~~~~~~~~~~~~~~~
    In module 'WebKit' imported from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.h:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h:64:12: note: 'WKWebsiteDataRecord' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0
    @interface WKWebsiteDataRecord : NSObject
               ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.3+1/ios/Classes/FLTCookieManager.m:37:17: note: enclose 'WKWebsiteDataRecord' in an @available check to silence this warning
          ^(NSArray<WKWebsiteDataRecord *> *cookies) {
                    ^~~~~~~~~~~~~~~~~~~
    5 warnings generated.
    === BUILD TARGET video_player OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.0+2/ios/Classes/FlutterWebviewPlugin.m:243:60: warning: implicit conversion loses integer precision: 'WKNavigationType' (aka 'enum WKNavigationType') to 'int' [-Wshorten-64-to-32]
                    @"navigationType": [NSNumber numberWithInt:navigationAction.navigationType]};
                                       ~                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 warning generated.
    In file included from /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/FluttertoastPlugin.m:2:
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param sharedStyle
     ~~~~~~~~~~~~~~~~~^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param allowTapToDismiss
     ~~~~~~~~~~~~~~~~~~~~~~~^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function declaration [-Wdocumentation]
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
            tapToDismissEnabled
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param queueEnabled
     ~~~~~~~~~~~~~~~~~~^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/FluttertoastPlugin.m:19:23: warning: unused variable 'viewController' [-Wunused-variable]
        UIViewController *viewController =
                          ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/FluttertoastPlugin.m:70:21: warning: unused variable 'topPadding' [-Wunused-variable]
                CGFloat topPadding = window.safeAreaInsets.top;
                        ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/FluttertoastPlugin.m:71:21: warning: unused variable 'bottomPadding' [-Wunused-variable]
                CGFloat bottomPadding = window.safeAreaInsets.bottom;
                        ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-3.0.4/ios/Classes/FluttertoastPlugin.m:48:19: warning: unused variable 'size' [-Wunused-variable]
            NSNumber *size = call.arguments[@"size"];
                      ^
    8 warnings generated.
    === BUILD TARGET video_player OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:86:55: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                                      if (_isLooping) {
                                                          ^
                                                          self->
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:90:57: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                                        if (_eventSink) {
                                                            ^
                                                            self->
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:91:55: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                                          _eventSink(@{@"event" : @"completed"});
                                                          ^
                                                          self->
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:156:75: warning: values of type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
        NSLog(@"TX and TY are 0. Rotation: %d. Natural width,height: %f, %f", rotationDegrees,
                                           ~~                                 ^~~~~~~~~~~~~~~
                                           %ld                                (long)
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:188:20: warning: unused variable 'size' [-Wunused-variable]
                CGSize size = videoTrack.naturalSize;
                       ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:212:10: warning: unused variable 'size' [-Wunused-variable]
      CGSize size = item.presentationSize;
             ^
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:185:15: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
              if (_disposed) return;
                  ^
                  self->
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:191:13: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                _preferredTransform = [self fixTransform:videoTrack];
                ^
                self->
    /Users/hello/Desktop/eclipseProject/flutterSdk/flutter/.pub-cache/hosted/pub.dartlang.org/video_player-0.10.0+2/ios/Classes/VideoPlayerPlugin.m:197:56: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    [self getVideoCompositionWithTransform:_preferredTransform
                                                           ^
                                                           self->
    9 warnings generated.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    ld: warning: ignoring file /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/ios/Pods/LuakitPod/lib/LuakitPod.framework/LuakitPod, missing required architecture x86_64 in file /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/ios/Pods/LuakitPod/lib/LuakitPod.framework/LuakitPod (2 slices)
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    fatal error: lipo: -extract x86_64 specified but fat file: /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/LuakitPod.framework/LuakitPod does not contain that architecture
    Failed to extract x86_64 for /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/LuakitPod.framework/LuakitPod. Running lipo -info:
    Architectures in the fat file: /Users/hello/Desktop/xzlcorp/AndroidStudioProjects/flutter_app/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/LuakitPod.framework/LuakitPod are: armv7 arm64 

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

纳闷昨天运行还好好的,今天就报错了,一顿查找,github上:
https://github.com/flutter/flutter/issues/19257
具体解决方法:执行flutter channel master即可,切换到官方master开发主分支即可
执行 flutter channel查看当前我的flutter处于stable(稳定)分支,然后在官网上看到这一句话:
我们强烈建议跟踪flutter的stable分支,这是Flutter稳定分支。 如果你需要查看最新的变化,你可以跟踪master分支,但注意这是开发分支,所以稳定性要低得多。
要查看您当前使用的分支,请运行flutter channel查看。
要切换分支,请使用flutter channel beta 或 flutter channel master

所以我想我的问题应该不是切换分支的问题,最后想想是不是clean一下项目试试:

MacBook-Pro-65:flutter_app hello$ flutter clean
Cleaning Xcode workspace...                                         2.7s
Deleting build...                                                  747ms
Deleting .dart_tool...                                               7ms
MacBook-Pro-65:flutter_app hello$

结束后,重新运行项目,结果顺利跑起来了。

你可能感兴趣的:(flutter)