ios - xcrun simctl list : NSDictionary 中的断言失败
问题描述
在 xcrun simctl list 看到错误时看到下面的错误日志,任何人都知道为什么我会看到这个?
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
解决方案
我不得不删除我的 xcode 并安装一个新副本,错误消失了,可能是我的 xcode 损坏了。
推荐阅读
- php - 使 if 语句更干燥
- tableau-api - Tableau - 如何显示堆积条形图的图例?
- sql-server - SQL Server 代理作业已成功完成,但未执行 SSIS 包中的 (.appref-ms) 文件
- f# - 将列表中每个元素的值与列表中的每个其他元素进行比较并更新它 (f#)
- jquery - 如何使用 symfony 4 用 Jquery 刷新 div?
- angular - 如何从 .ts 文件中捕获 html 元素?
- android - Android 9 崩溃 minifyEnabled 和 multiDexEnabled
- ffmpeg - 如何合并分段的 webvtt 字幕文件并输出单个文件?
- r - 使用 R + DBI 库 + ODBC 连接到 Teradata Database
- spring - 是否有一种较少冗余的方式来加载/保存实体?