更新了uni-app的iOS端APP离线SDK后用Xcode运行APP到iPhone真机调试时报错了,具体错误如下:
Details
Unable to install "fenxianglu"
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 0x000000011a83e3b8 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000011a87cae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x0000000104fdbb7c DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000011a87c822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x000000011a709999 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 3534
5 DVTFoundation 0x000000010510e931 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x000000010511055b __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff202b9603 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff202ba7e6 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff202c05ca _dispatch_lane_serial_drain + 606
10 libdispatch.dylib 0x00007fff202c108d _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007fff202cabed _dispatch_workloop_worker_thread + 811
12 libsystem_pthread.dylib 0x00007fff204614c0 _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff20460493 start_wqthread + 15
);
}
--
System Information
macOS Version 11.3.1 (Build 20E241)
Xcode 12.5 (18205) (Build 12E262)
Timestamp: 2021-05-22T23:12:23+08:00
网上有资料说打开Xcode,选取”File” > “Project Settings…” 选择 “Legacy Build System” 而不是 “New Build System(Default)” 即可解决,但实际上并不能解决问题。
我突然想起之前Add Frameworks时Embed状态老是默认选中“Embed & Sign”,看了一下DCUniVideoPublic.framework果然是“Embed & Sign”!
于是把它改成“Do Not Embed”然后重新点左上角三角图标运行(Build and then run the current scheme)一下就可以了!
另外,这次更新离线SDK后发现带来很多问题,比如被强制要求提供Bundle Identifier、包名、证书签名等才能使用,另外就算没有使用广告标识(IDFA)也会因包含NSUserTrackingUsageDescription而得修改App Store Connect上的App隐私否则过不了审核!所以建议直接在manifest.json中设置ignoreVersion为true以忽略版本检查提示框!
"app-plus" : {
"compatible" : {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
......
关于iOS开发可以看我的iOS系列教程。
历史上的今天:
- 2023: 简介STARTTLS与SSL/TLS(0)
展开阅读全文
上一篇: 第七次全国人口普查结果