IOS13.1 运行报错Could not build the precompiled application for the device.

来源:6-17 本章小结

ErikLu

2019-10-16

报错

code's output:
↳
    === BUILD TARGET flutter_webview_plugin OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/eriklu/development/paths/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.7/ios/Classes/FlutterWebviewPlugin.m:83:22: warning: incompatible pointer to
    integer conversion assigning to 'BOOL' (aka 'signed char') from 'id _Nullable' [-Wint-conversion]
        _enableAppScheme = call.arguments[@"enableAppScheme"];
                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/eriklu/development/paths/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.7/ios/Classes/FlutterWebviewPlugin.m:279:24: warning: comparison of distinct
    pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
      if (_invalidUrlRegex != [NSNull null] && urlString != nil) {
          ~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~
    /Users/eriklu/development/paths/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.7/ios/Classes/FlutterWebviewPlugin.m:345:94: warning: values of type 'NSInteger'
    should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
        [channel invokeMethod:@"onError" arguments:@{@"code": [NSString stringWithFormat:@"%ld", error.code], @"error": error.localizedDescription}];
                                                                                           ~~~   ^~~~~~~~~~
                                                                                           %ld   (long)
    /Users/eriklu/development/paths/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.7/ios/Classes/FlutterWebviewPlugin.m:352:102: warning: values of type
    'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]
            [channel invokeMethod:@"onHttpError" arguments:@{@"code": [NSString stringWithFormat:@"%ld", response.statusCode], @"url": webView.URL.absoluteString}];
                                                                                                   ~~~   ^~~~~~~~~~~~~~~~~~~
                                                                                                   %ld   (long)
    4 warnings generated.
    /Users/eriklu/development/paths/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.7/ios/Classes/FlutterWebviewPlugin.m:279:24: warning: comparison of distinct
    pointer types ('NSString *' and 'NSNull * _Nonnull') [-Wcompare-distinct-pointer-types]
      if (_invalidUrlRegex != [NSNull null] && urlString != nil) {
          ~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~
    /Users/eriklu/development/paths/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_webview_plugin-0.3.7/ios/Classes/FlutterWebviewPlugin.m:302:60: warning: implicit conversion loses
    integer precision: 'WKNavigationType' (aka 'enum WKNavigationType') to 'int' [-Wshorten-64-to-32]
                    @"navigationType": [NSNumber numberWithInt:navigationAction.navigationType]};
                                       ~                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    2 warnings generated.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    Code Signing Error: No profiles for 'org.devio.flutter.trip' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'org.devio.flutter.trip'.
    Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.1'
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.1'
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.1'
写回答

1回答

CrazyCodeBoy

2019-10-16

用Xcode打开项目中的iOS项目然后clean之后再运行试一下。

0
0

Flutter从入门到进阶 实战携程网App 一网打尽核心技术

解锁Flutter开发新姿势,,系统掌握Flutter开发核心技术。

4788 学习 · 3274 问题

查看课程