Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode tries to communicate with plugged-in iOS devices during vst2 builds #175

Closed
esaruoho opened this issue Dec 27, 2018 · 2 comments
Closed

Comments

@esaruoho
Copy link
Collaborator

i'm charging my iPhone with my laptop. so i go to build-osx.sh and get this:

Building surge-vst2 with output in build_logs/build_vst2.log
2018-12-27 12:58:39.592 xcodebuild[30950:1772016]  DTDeviceKit: Failed to mount DDI from '<DVTFilePath:0x7ffb80d295b0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.1 (16B91)/DeveloperDiskImage.dmg'>', error=-402652958: Error Domain=com.apple.dtdevicekit Code=-402652958 "Development cannot be enabled while your device is locked." UserInfo={NSLocalizedDescription=Development cannot be enabled while your device is locked., com.apple.dtdevicekit.stacktrace=(
	0   DTDeviceKitBase                     0x00000001102f3c61 DTDKCreateNSError + 113
	1   DTDeviceKitBase                     0x00000001102f44a9 DTDK_AMDErrorToNSError + 1139
	2   DTDeviceKitBase                     0x0000000110334723 -[DTDKMobileDeviceToken mountDeveloperDiskImage:withError:] + 778
	3   DTDeviceKitBase                     0x00000001103350a9 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 467
	4   IDEiOSSupportCore                   0x000000011020767f __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 265
	5   DVTFoundation                       0x00000001034ba1a7 __DVTDispatchGroupAsync_block_invoke + 801
	6   libdispatch.dylib                   0x00007fff6baddd53 _dispatch_call_block_and_release + 12
	7   libdispatch.dylib                   0x00007fff6badedcf _dispatch_client_callout + 8
	8   libdispatch.dylib                   0x00007fff6bae1654 _dispatch_continuation_pop + 547
	9   libdispatch.dylib                   0x00007fff6bae0c7e _dispatch_async_redirect_invoke + 718
	10  libdispatch.dylib                   0x00007fff6baecd26 _dispatch_root_queue_drain + 325
	11  libdispatch.dylib                   0x00007fff6baed4bd _dispatch_worker_thread2 + 90
	12  libsystem_pthread.dylib             0x00007fff6bd1f6dd _pthread_wqthread + 619
	13  libsystem_pthread.dylib             0x00007fff6bd1f405 start_wqthread + 13
), NSLocalizedRecoverySuggestion=Please unlock your device and reattach. (0xE80000E2)., NSLocalizedFailureReason=Please unlock your device and reattach. (0xE80000E2).}
2018-12-27 12:58:39.593 xcodebuild[30950:1772016]  iPhoneConnect: 📱<DVTiOSDevice (0x7ffb83ee8a30), EsaiPhoneX, iPhone, 12.1.3 (16D5032a), ff0c08d2fa6c763d37e30a5fb433b379fd05e4f0> unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=-402652958 "Development cannot be enabled while your device is locked." UserInfo={NSLocalizedDescription=Development cannot be enabled while your device is locked., com.apple.dtdevicekit.stacktrace=(
	0   DTDeviceKitBase                     0x00000001102f3c61 DTDKCreateNSError + 113
	1   DTDeviceKitBase                     0x00000001102f44a9 DTDK_AMDErrorToNSError + 1139
	2   DTDeviceKitBase                     0x0000000110334723 -[DTDKMobileDeviceToken mountDeveloperDiskImage:withError:] + 778
	3   DTDeviceKitBase                     0x00000001103350a9 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 467
	4   IDEiOSSupportCore                   0x000000011020767f __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 265
	5   DVTFoundation                       0x00000001034ba1a7 __DVTDispatchGroupAsync_block_invoke + 801
	6   libdispatch.dylib                   0x00007fff6baddd53 _dispatch_call_block_and_release + 12
	7   libdispatch.dylib                   0x00007fff6badedcf _dispatch_client_callout + 8
	8   libdispatch.dylib                   0x00007fff6bae1654 _dispatch_continuation_pop + 547
	9   libdispatch.dylib                   0x00007fff6bae0c7e _dispatch_async_redirect_invoke + 718
	10  libdispatch.dylib                   0x00007fff6baecd26 _dispatch_root_queue_drain + 325
	11  libdispatch.dylib                   0x00007fff6baed4bd _dispatch_worker_thread2 + 90
	12  libsystem_pthread.dylib             0x00007fff6bd1f6dd _pthread_wqthread + 619
	13  libsystem_pthread.dylib             0x00007fff6bd1f405 start_wqthread + 13
), NSLocalizedRecoverySuggestion=Please unlock your device and reattach. (0xE80000E2)., NSLocalizedFailureReason=Please unlock your device and reattach. (0xE80000E2).}) {
    NSLocalizedDescription = "Development cannot be enabled while your device is locked.";
    NSLocalizedFailureReason = "Please unlock your device and reattach. (0xE80000E2).";
    NSLocalizedRecoverySuggestion = "Please unlock your device and reattach. (0xE80000E2).";
    "com.apple.dtdevicekit.stacktrace" = (
	0   DTDeviceKitBase                     0x00000001102f3c61 DTDKCreateNSError + 113
	1   DTDeviceKitBase                     0x00000001102f44a9 DTDK_AMDErrorToNSError + 1139
	2   DTDeviceKitBase                     0x0000000110334723 -[DTDKMobileDeviceToken mountDeveloperDiskImage:withError:] + 778
	3   DTDeviceKitBase                     0x00000001103350a9 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 467
	4   IDEiOSSupportCore                   0x000000011020767f __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 265
	5   DVTFoundation                       0x00000001034ba1a7 __DVTDispatchGroupAsync_block_invoke + 801
	6   libdispatch.dylib                   0x00007fff6baddd53 _dispatch_call_block_and_release + 12
	7   libdispatch.dylib                   0x00007fff6badedcf _dispatch_client_callout + 8
	8   libdispatch.dylib                   0x00007fff6bae1654 _dispatch_continuation_pop + 547
	9   libdispatch.dylib                   0x00007fff6bae0c7e _dispatch_async_redirect_invoke + 718
	10  libdispatch.dylib                   0x00007fff6baecd26 _dispatch_root_queue_drain + 325
	11  libdispatch.dylib                   0x00007fff6baed4bd _dispatch_worker_thread2 + 90
	12  libsystem_pthread.dylib             0x00007fff6bd1f6dd _pthread_wqthread + 619
	13  libsystem_pthread.dylib             0x00007fff6bd1f405 start_wqthread + 13
);
}
@baconpaul
Copy link
Collaborator

That’s Xcode not build-osx

The build script just runs xcodebuild

I think the easiest fix is “unplug your phone” but if not then you need to debug both how your Xcode is set up and what premake ejects. Which sounds hard

@baconpaul baconpaul changed the title build-osx.sh tries to communicate with plugged-in iOS devices?! XCode tries to communicate with plugged-in iOS devices during vst2 builds Dec 27, 2018
@baconpaul
Copy link
Collaborator

Hey can we close this issue @esaruoho - it is really nothing to do with surge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants