0

Seeing error while xcrun simctl list see the error logs below , Any one has idea why do i see this ?

xcrun simctl list
2018-12-30 15:17:48.636 simctl[66720:6180396] *** Assertion failure in NSDictionary * _Nullable rock_XPCObjectToNSDictionary(xpc_object_t  _Nonnull __strong, ROCKSessionManager * _Nullable __strong, NSError * _Nullable __autoreleasing * _Nullable)(), /BuildRoot/Library/Caches/com.apple.xbs/Sources/ROCKit/ROCKit-24/ROCKit/NSDictionary+ROCK.m:172
2018-12-30 15:17:48.636 simctl[66720:6180396] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'API VIOLATION: rock_XPCObjectToNSDictionary would have returned nil without an error set.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff432cf43d __exceptionPreprocess + 256
    1   libobjc.A.dylib                     0x00007fff6f1dc720 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff432ea08e +[NSException raise:format:arguments:] + 98
    3   Foundation                          0x00007fff456d563d -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
    4   ROCKit                              0x00007fff667e3fc4 rock_XPCObjectToNSDictionary + 1979
    5   CoreSimulator                       0x000000010fa2cd3c __50-[SimDeviceSet subscribeToNotificationsWithError:]_block_invoke + 44
    6   libxpc.dylib                        0x00007fff704db605 xpc_array_apply + 57
    7   CoreSimulator                       0x000000010fa2c9ae -[SimDeviceSet subscribeToNotificationsWithError:] + 866
    8   CoreSimulator                       0x000000010f9fc9cd __45-[SimServiceContext deviceSetWithPath:error:]_block_invoke + 741
    9   libdispatch.dylib                   0x00007fff7025bdcb _dispatch_client_callout + 8
    10  libdispatch.dylib                   0x00007fff70267a28 _dispatch_lane_barrier_sync_invoke_and_complete + 60
    11  CoreSimulator                       0x000000010f9fc516 -[SimServiceContext deviceSetWithPath:error:] + 249
    12  CoreSimulator                       0x000000010f9fc3f9 -[SimServiceContext defaultDeviceSetWithError:] + 71
    13  simctl                              0x000000010f98686f simctl + 67695
    14  simctl                              0x000000010f998b39 simctl + 142137
    15  libdispatch.dylib                   0x00007fff7025ad4f _dispatch_call_block_and_release + 12
    16  libdispatch.dylib                   0x00007fff7025bdcb _dispatch_client_callout + 8
    17  libdispatch.dylib                   0x00007fff70269e74 _dispatch_root_queue_drain + 671
    18  libdispatch.dylib                   0x00007fff7026a4b1 _dispatch_worker_thread2 + 90
    19  libsystem_pthread.dylib             0x00007fff7049b6ee _pthread_wqthread + 619
    20  libsystem_pthread.dylib             0x00007fff7049b415 start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
Max
  • 5,380
  • 6
  • 42
  • 66
  • The most significant information is ***rock_XPCObjectToNSDictionary would have returned nil without an error set***. Maybe you should set the error parameter. – vadian Dec 30 '18 at 16:18
  • I had to delete my xcode and use a fresh copy and the error was gone may be my xcode got corrupted. – Max Dec 30 '18 at 16:22
  • 1
    If the problem is solved please post the solution as an answer or else delete the question... Thanks! – matt Dec 30 '18 at 22:29
  • I faced the same problem after installing an older version of Xcode (10.1) side-by-side with the "main" one (10.2). I didn't have to reinstall Xcode itself to get this fixed, but just the Command Line Tools. Hope it helps somebody. – cicerocamargo Apr 17 '19 at 12:17

1 Answers1

0

I had to delete my xcode and install a fresh copy and the error was gone may be my xcode got corrupted.

Max
  • 5,380
  • 6
  • 42
  • 66