Xcode12.4 运行真机 iOS15

我的设备:MacBook Pro (Retina, 13-inch, Early 2015)
去年尝试升级 macOS Big Sur 失败,去苹果 Genius Bar 重装了系统,帮我装到了可以装的最新 macOS Cataina10.15.7(19H15),并建议我不要再尝试升级。

最近收到了一个 bug 反馈,在 iOS15 的设备上 fishhook 出现了崩溃。修复后为了验证,升级了手机到iOS15,下载了最新的 iOS15 DeviceSupport 添加到 Xcode 。
在真机运行时出现了这样的 bug

Details

Unable to install "******"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
--
The code signature version is no longer supported.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
User Info: {
    DVTRadarComponentKey = 261622;
    MobileDeviceErrorCode = "(0xE8008029)";
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x000000011eec8c8f DTDKCreateNSErrorFromAMDErrorCode + 220
    1   DTDeviceKitBase                     0x000000011ef07241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
    2   DVTFoundation                       0x0000000103d9d64b DVTInvokeWithStrongOwnership + 71
    3   DTDeviceKitBase                     0x000000011ef06f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
    4   IDEiOSSupportCore                   0x000000011ed77a10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
    5   DVTFoundation                       0x0000000103ecc17e __DVT_CALLING_CLIENT_BLOCK__ + 7
    6   DVTFoundation                       0x0000000103ecdda0 __DVTDispatchAsync_block_invoke + 1191
    7   libdispatch.dylib                   0x00007fff721126c4 _dispatch_call_block_and_release + 12
    8   libdispatch.dylib                   0x00007fff72113658 _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x00007fff72118c44 _dispatch_lane_serial_drain + 597
    10  libdispatch.dylib                   0x00007fff721195d6 _dispatch_lane_invoke + 363
    11  libdispatch.dylib                   0x00007fff72122c09 _dispatch_workloop_worker_thread + 596
    12  libsystem_pthread.dylib             0x00007fff7236da3d _pthread_wqthread + 290
    13  libsystem_pthread.dylib             0x00007fff7236cb77 start_wqthread + 15
);
}
--


System Information

macOS Version 10.15.7 (Build 19H15)
Xcode 12.4 (17801) (Build 12D4e)
Timestamp: 2021-09-23T16:19:49+08:00

根据错误描述去搜索得出:

  • 可能是因为对framework的签名不一致导致,有的是Do Not Embed, 有的是Embed and Sign

我觉得可能性不大,因为之前并无这种问题,但是还是进行了尝试,新建了一个什么内容都没有的空工程,依然报同样的错误,那应该是Xcode 运行iOS15出现的问题。

继续搜索,得出了以下解决方法:
The code signature version is no longer supported.

  • TARGET —> Build Settings —> 搜索OTHER_CODE_SIGN_FLAGS—> 添加 --generate-entitlement-der

暂时解决了我的问题。

你可能感兴趣的:(Xcode12.4 运行真机 iOS15)