Xcode: 12.5.1
macOS: 11.5.2
I have an app I'm building in Xcode that has several dependencies (Cocoapods). After adding one framework in particular (Wikitude AR framework), my build succeeds but I can no longer install the app on my device (iPhone 11, 14.7.1). The install fails with the following error:
Unable to install "my-cool-app"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
--
No code signature found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620388
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE800801C)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x00000001246963b8 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x00000001246d4ae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x0000000108ef2bac DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x00000001246d4822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x000000011867d999 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 3534
5 DVTFoundation 0x0000000109025921 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x000000010902754b __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff20165623 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff20166806 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff2016c5ea _dispatch_lane_serial_drain + 606
10 libdispatch.dylib 0x00007fff2016d0ad _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007fff20176c0d _dispatch_workloop_worker_thread + 811
12 libsystem_pthread.dylib 0x00007fff2030d45d _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff2030c42f start_wqthread + 15
);
}
--
System Information
macOS Version 11.5.2 (Build 20G95)
Xcode 12.5.1 (18212) (Build 12E507)
Timestamp: 2021-08-16T14:42:04-04:00
I assume that this means the framework needs to be signed somehow. However, if I add the framework to "Frameworks, Libraries, and Embedded Content", the build immediately fails with the following error:
Multiple commands produce 'my-cool-app/ios/Build/Products/Debug-iphoneos/my-cool-app.app/Frameworks/WikitudeSDK.framework':
1) Target 'my-cool-app' has copy command from 'my-cool-app/node_modules/react-native-wikitude-sdk/ios/WikitudeSDK.framework' to 'my-cool-app/ios/Build/Products/Debug-iphoneos/my-cool-app.app/Frameworks/WikitudeSDK.framework'
2) That command depends on command in Target 'my-cool-app': script phase “[CP] Embed Pods Frameworks”
How can I install and run my application on my device? I've tried about 100 different solutions from SO and other sources -- none have made a difference. Any help is appreciated.