首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >xcrun simctl list : NSDictionary中的断言失败

xcrun simctl list : NSDictionary中的断言失败
EN

Stack Overflow用户
提问于 2018-12-30 23:22:16
回答 1查看 205关注 0票数 0

在xcrun simctl列表中看到错误请看下面的错误日志,有人知道我为什么会看到这个吗?

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2018-12-31 17:08:27

我不得不删除我的xcode并安装一个新的副本,错误消失了,可能是我的xcode被损坏了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53978832

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档