如何使用 xcode 12.4 创建未签名的 ipa 文件?无法安装 "Runner"?代码:代码:-402620388

How to create unsigned ipa file using xcode 12.4? Unable to install "Runner"? code: Code: -402620388

Unable to install "Runner"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
how to solved it.

详情

无法安装“Runner” 域:com.apple.dt.MobileDeviceErrorDomain 代码:-402620388

未找到代码签名。 域:com.apple.dt.MobileDeviceErrorDomain 代码:-402620388 用户信息:

{
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE800801C)";
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x000000012c305c8f DTDKCreateNSErrorFromAMDErrorCode + 220
    1   DTDeviceKitBase                     0x000000012c344241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
    2   DVTFoundation                       0x000000010c90864b DVTInvokeWithStrongOwnership + 71
    3   DTDeviceKitBase                     0x000000012c343f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
    4   IDEiOSSupportCore                   0x000000012c1b4a10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
    5   DVTFoundation                       0x000000010ca3717e __DVT_CALLING_CLIENT_BLOCK__ + 7
    6   DVTFoundation                       0x000000010ca38da0 __DVTDispatchAsync_block_invoke + 1191
    7   libdispatch.dylib                   0x00007fff2016b5dd _dispatch_call_block_and_release + 12
    8   libdispatch.dylib                   0x00007fff2016c7c7 _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x00007fff201725fe _dispatch_lane_serial_drain + 606
    10  libdispatch.dylib                   0x00007fff201730cb _dispatch_lane_invoke + 375
    11  libdispatch.dylib                   0x00007fff2017cc5d _dispatch_workloop_worker_thread + 819
    12  libsystem_pthread.dylib             0x00007fff20314499 _pthread_wqthread + 314
    13  libsystem_pthread.dylib             0x00007fff20313467 start_wqthread + 15
);
}
--

系统信息

macOS 版本 11.0.1(内部版本 20B29) Xcode 12.4 (17801)(内部版本 12D4e) 时间戳:2021-03-20T01:25:23-07:00

我是 flutter 的新手。怎么解决的?

您是 运行在您的设备上安装您的应用程序(例如 Mac、iPad 或 iPhone?),而不是模拟器?在 Whosebug 上,尽量提供尽可能多的细节,这就是 lenz 的意思。 您似乎正在 iPhone 上为 运行 构建 Flutter 应用程序,不是 您的 macbook?

阅读 this,尤其是(但不仅限于)“Select 真实设备”部分。

如果为您的 iOS 设备构建:

If you choose a real device, add your Apple ID in Accounts preferences and assign the project to a team on the Signing & Capabilities pane of the project editor. A single individual constitutes a one-person team. For macOS apps, you need to code sign the app if you enable certain capabilities. If you belong to the Apple Developer Program, you need to register the device before you can run the app.

你需要

  • 使用您的 Apple ID 登录 Xcode。您不需要 99 美元的 Apple Developer 计划会员资格。
  • 在“签名和功能”选项卡中勾选自动管理签名

如果您是为 macOS(不是移动应用程序)构建:

如果您在未签名的情况下构建 macOS 应用程序,则:

  • 禁用代码签名:遵循
  • 代号吧:关注this