XCode 12.5 and watchOS6.3

Hi,

I am having trouble using watchOS6.3 with XCode 12.5. I have three questions:
  1. I would like to test my app on a Series 2 watch that has watchOS6.3 installed. I have the watch setup as a device in XCode. I have been able to use it in the past. However, now when I try to launch the app from XCode I get an "Unable to install" error. I don't know why I'm getting an error about wireless sync, as I have connect the phone to my computer via cable. Any help would be appreciated.

Code Block
Unable to install "My App"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653057
--
Device doesn’t support wireless sync.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653057
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE800007F)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x00000001225f03b8 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000012262eae1 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x000000010ae9eb7c DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000012262e822 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x00000001224e7999 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 3534
5 DVTFoundation 0x000000010afd1931 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x000000010afd355b __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff201ef603 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff201f07e6 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff201f65ca _dispatch_lane_serial_drain + 606
10 libdispatch.dylib 0x00007fff201f708d _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007fff20200bed _dispatch_workloop_worker_thread + 811
12 libsystem_pthread.dylib 0x00007fff203974c0 _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff20396493 start_wqthread + 15
);
}
--
System Information
macOS Version 11.3.1 (Build 20E241)
Xcode 12.5 (18205) (Build 12E262)
Timestamp: 2021-05-12T10:38:37-07:00

2. I want to use the simulator to test my app. However, when I go to Preferences -> Components, the latest watchOS6 version I see is watchOS6.2.1. Is there a way to get watchOS6.3 for the simulator?

3. If I use the watchOS6.2.1 simulator I get the errors below. I've resolved these by going into "Edit Scheme" -> Options and unchecking 'Enable backtrace recording' and "Edit Scheme" -> Diagnostics and unchecking "Main Thread Checker". Is anyone else having this problem?

Code Block
dyld: could not load inserted library '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib' because no suitable image found. Did find:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib: no matching architecture in universal wrapper


Code Block
dyld: could not load inserted library '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib' because no suitable image found. Did find:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib: no matching architecture in universal wrapper




Thank you.


Thank you very much for your post. I have exactly the same issue which haunted me for months. Looks like a bug in watchOS 6 because the issue isn't happening on watchOS 7. Disabling the 2 options you mentioned in step 3 prevents my app to crash on launch.

XCode 12.5 and watchOS6.3
 
 
Q