Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Visual Studio Mac does not let me debug on physical iPad

Dave1862Dave1862 USMember ✭✭

I want to debug my app on a physical iPad but it does not show up under the selector for target device -- only simulators show up. The list is iPad Pro (12.9-inch) 4th Generation iOS 14.1, iPad Pro (11-inch) 2nd Generation iOS 14.1, iPad Pro (9.7-inch) 4th Generation iOS 14.1, iPad Air (4th Generation) iOS 14.1, iPad (8th Generation) iOS 14.1.

I have done all steps regarding certificates and provisioning. I am able to see the device on XCode >> Devices and Simulators and interact with it from there. But it gives two errors -- "Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode." and "Failed to prepare device for development." Details below.

Visual Studio for Mac is set for Automatic Provisioning and says "Ready to deploy app to connected device."

I have disconnected, reconnected, restarted, unpaired, repaired, cleared all permissions on the iPad. Everything I could find, but nothing has worked yet.

I have XCode Version 12.1 (12A7403), Visual Studio for Mac Community Version 8.7.9 (build 9), iPad 7th Generation software version 14.0.1.

Here are the Details provided from XCode about the two errors. Again, already tried disconnecting/reconnecting as it recommends.

Can anyone help with this?

Details

Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode.
Domain: com.apple.platform.iphoneos
Code: 5
Failure Reason: allowsSecureServices: 1. isConnected: 0. Platform: <DVTPlatform:0x7fb1654a2610:'com.apple.platform.iphoneos':<DVTFilePath:0x7fb1654a2590:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1";

}

System Information

macOS Version 10.15.7 (Build 19H2)
Xcode 12.1 (17222)

Details

Failed to prepare device for development.
Domain: com.apple.dtdevicekit
Code: 806
Recovery Suggestion: If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device.
User Info: {
AssociatedMobileDeviceFunction = AMDeviceMountImage;
DVTRadarComponentKey = 487927;
NSLocalizedFailure = "This operation can fail if the version of the OS on the device is newer than the version of Xcode that is running.";

}

An unknown error occurred.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653183
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000001)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000012736193f DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x000000012739df58 -[DTDKMobileDeviceToken _mountDeveloperDiskImage:withError:] + 1024
2 DTDeviceKitBase 0x000000012739e978 58-[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:]_block_invoke + 609
3 libdispatch.dylib 0x00007fff71d2d658 _dispatch_client_callout + 8
4 libdispatch.dylib 0x00007fff71d396ec _dispatch_lane_barrier_sync_invoke_and_complete + 60
5 DTDeviceKitBase 0x000000012739e6b5 -[DTDKMobileDeviceToken mountDeveloperDiskImageWithError:] + 188
6 IDEiOSSupportCore 0x00000001271f2d8c __37-[DVTiOSDevice(Connect) hasConnected]_block_invoke_2 + 258
7 DVTFoundation 0x000000010b45e29a __DVT_CALLING_CLIENT_BLOCK
+ 7
8 DVTFoundation 0x000000010b4630e7 __DVTDispatchGroupAsync_block_invoke + 1191
9 libdispatch.dylib 0x00007fff71d2c6c4 _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fff71d2d658 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff71d2f890 _dispatch_continuation_pop + 534
12 libdispatch.dylib 0x00007fff71d2ef16 _dispatch_async_redirect_invoke + 703
13 libdispatch.dylib 0x00007fff71d3b957 _dispatch_root_queue_drain + 326
14 libdispatch.dylib 0x00007fff71d3c097 _dispatch_worker_thread2 + 92
15 libsystem_pthread.dylib 0x00007fff71f879f7 _pthread_wqthread + 220
16 libsystem_pthread.dylib 0x00007fff71f86b77 start_wqthread + 15
);

}

System Information

macOS Version 10.15.7 (Build 19H2)
Xcode 12.1 (17222)

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    Can you use XCode to build a simple project to your device with an automatic profile?
    Is your device able to the internet?
    Did you unlock your device and wait for the deployment?

  • Dave1862Dave1862 USMember ✭✭

    @LandLu
    Can you use XCode to build a simple project to your device with an automatic profile?
    I made a new app inside of XCode. I do see my iPad in the device list. When I run the app I get the following error --
    The operation couldn’t be completed. Unable to launch My-Company.TestApp because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.

    Is your device able to the internet?
    Yes.

    Did you unlock your device and wait for the deployment?
    Yes.

  • Dave1862Dave1862 USMember ✭✭

    @LandLu does this answer your questions?

Sign In or Register to comment.