Fastlane快照警告"无法安装DeveloperDiskImage"

时间:2018-01-23 13:12:53

标签: ios fastlane

虽然这并不妨碍fastlane snapshot工作,但我想知道为什么在跑步时会收到以下警告(如紫色图所示)?

enter image description here

[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构建命令试图使用我的物理设备?

1 个答案:

答案 0 :(得分:2)

当设备连接到运行快照的计算机或使用Xcode 10的新无线配对功能进行配对时,会发生这种情况。

尝试拔下设备的电源。如果您没有插入任何设备,请尝试:

  • 在Xcode中,选择“窗口-设备和模拟器”。
  • 如果看到左侧连接了任何设备,请右键单击它们,然后选择“取消配对”。