虽然这并不妨碍fastlane snapshot
工作,但我想知道为什么在跑步时会收到以下警告(如紫色图所示)?
[13:11:17]: ▸ 2018-01-23 13:11:17.281 xcodebuild[87131:11428054] iPhoneSupport: Unable to mount DeveloperDiskImage on Jack’s Apple Watch (Error Domain=com.apple.dtdevicekit Code=-402653158 "The device is passcode protected." UserInfo={NSLocalizedDescription=The device is passcode protected., com.apple.dtdevicekit.stacktrace=(
[13:11:17]: ▸ 0 DTDeviceKitBase 0x00000001148bffed DTDKCreateNSError + 113
[13:11:17]: ▸ 1 DTDeviceKitBase 0x00000001148c0831 DTDK_AMDErrorToNSError + 1135
[13:11:17]: ▸ 2 DTDeviceKitBase 0x0000000114901441 -[DTDKMobileDeviceToken mountDeveloperDiskImage:withError:] + 782
[13:11:17]: ▸ 3 DTDeviceKitBase 0x0000000114901cf8 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 488
[13:11:17]: ▸ 4 IDEiOSSupportCore 0x00000001147d65ae __28-[DVTiOSDevice attachToken:]_block_invoke_4 + 216
[13:11:17]: ▸ 5 DVTFoundation 0x0000000108a75a4f __DVTDispatchAsync_block_invoke + 806
[13:11:17]: ▸ 6 libdispatch.dylib 0x00007fff72b10591 _dispatch_call_block_and_release + 12
[13:11:17]: ▸ 7 libdispatch.dylib 0x00007fff72b08d50 _dispatch_client_callout + 8
[13:11:17]: ▸ 8 libdispatch.dylib 0x00007fff72b1be76 _dispatch_continuation_pop + 472
[13:11:17]: ▸ 9 libdispatch.dylib 0x00007fff72b136cb _dispatch_async_redirect_invoke + 703
[13:11:17]: ▸ 10 libdispatch.dylib 0x00007fff72b0a941 _dispatch_root_queue_drain + 515
[13:11:17]: ▸ 11 libdispatch.dylib 0x00007fff72b0a6ed _dispatch_worker_thread3 + 101
[13:11:17]: ▸ 12 libsystem_pthread.dylib 0x00007fff72dcd1ca _pthread_wqthread + 1387
[13:11:17]: ▸ 13 libsystem_pthread.dylib 0x00007fff72dccc4d start_wqthread + 13
[13:11:17]: ▸ ), NSLocalizedRecoverySuggestion=Please unlock your device and reattach. (0xE800001A)., NSLocalizedFailureReason=Please unlock your device and reattach. (0xE800001A).})
如果我没有连接iPhone,那么这不会发生。也许底层的Xcode构建命令试图使用我的物理设备?
答案 0 :(得分:2)
当设备连接到运行快照的计算机或使用Xcode 10的新无线配对功能进行配对时,会发生这种情况。
尝试拔下设备的电源。如果您没有插入任何设备,请尝试: