Flutter / macOS-应用程序仍包含默认签名标识符

时间:2018-09-07 18:36:22

标签: ios xcode macos flutter

我最近将一些文件从旧flutter项目中的iOS文件夹复制到了新项目中,以便保留appIconslaunchScreens。现在,当尝试从 VSCode 启动代码时,出现以下错误, Xcode可以正常运行

我想知道是否有一种方法可以更改某些参数,以便可以替换我的签名ID,但是在Xcode中找不到任何可以这样做的方法。

(诺基亚3310只是我用于调试测试的iPhone 6 :))

Launching lib/main.dart on Nokia 3310 in debug mode...
    Automatically signing iOS for device deployment using specified development team in Xcode project: **********
    Xcode build done.
    Failed to build iOS app
    Error output from Xcode build:
    ↳
    ** BUILD FAILED **
    Xcode's output:
    ↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    Target 'Pods-Runner' of project 'Pods' was rejected as an implicit dependency for 'libPods-Runner.a' because its architectures 'arm64' didn't contain all required architectures 'armv7 arm64'
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/main.m:1:
    In file included from <module-includes>:1:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:80:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
    didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
    ^
    In module 'UIKit' imported from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
    @interface UIUserNotificationSettings : NSObject
    ^
    While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/main.m:1:
    In file included from <module-includes>:1:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
    completionHandler:(nonnull void (^)())completionHandler;
    ^
    void
    2 warnings generated.
    2 warnings generated.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/AppDelegate.h:1:
    In file included from <module-includes>:1:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:80:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]
    didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;
    ^
    In module 'UIKit' imported from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here
    @interface UIUserNotificationSettings : NSObject
    ^
    While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/AppDelegate.h:1:
    In file included from <module-includes>:1:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:
    In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:
    /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]
    completionHandler:(nonnull void (^)())completionHandler;
    ^
    void
    2 warnings generated.
    2 warnings generated.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    ld: warning: directory not found for option '-F/Users/jake/Desktop/cryptick-master/ios/Pods/../.symlinks/flutter/ios'
    ld: library not found for -lPods-Runner
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: warning: directory not found for option '-F/Users/jake/Desktop/cryptick-master/ios/Pods/../.symlinks/flutter/ios'
    ld: library not found for -lPods-Runner
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Could not build the precompiled application for the device.
    It appears that your application still contains the default signing identifier.
    Try replacing 'com.example' with your signing id in Xcode:
      open ios/Runner.xcworkspace
    Error launching application on Nokia 3310.
    Exited (sigterm)

1 个答案:

答案 0 :(得分:1)

通过再次创建一个新项目并迁移代码,似乎已解决了该问题。根据当前的详细信息,我将无法复制此问题。

如果其他人遇到类似的问题,请提供复制行为并将其提交到此处的步骤:https://github.com/flutter/flutter/issues/