Xcode Device Issue - Failed _shouldMakeReadyForDevelopment check even though device is not locked by passcode - iphone

Error and warnigs in devices and simulators
Issue :
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:0x7fecb76471f0:'com.apple.platform.iphoneos':<DVTFilePath:0x7fecb7647170:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform'>>. DTDKDeviceIdentifierIsIDID: 0
User Info: {
DVTDeviceDescription = "\Ud83d\Udcf1<DVTiOSDevice (0x7fecb9844570), TakHyun\Uc758 iPhone, iPhone, 13.4.1 (17E262), 8d695f88c5c910974df39462a1815a52376a0fa9>";
}
TRY:
Restart macbook and iphone
Trust in Trust This Computer notification
Xcode Version 11.4.1 (11E503a)
IPhone X ios 13.4.1

I finally figure it out
Connect the iphone(cable not wifi)
Unpair device and quit the xcode
Reconnect the iphone and Trust this computer accept
Done.
If you cant fix it, go to apple dev site
reedit the device and do it again 1~3
check this photos

I started getting the OP's error after updating my iPhone to iOS 13.5.1. Here is what worked for me to resolve the issue:
Unpair the iPhone (as per answer from #Jeff above).
Upgrade Xcode to latest, in my case 11.5 (which I believe is the first version of Xcode to support building to iOS 13.5.
NEW: I launched Xcode after updating to 13.5 which prompted me to "Install additional required components" which I did.
Xcode extra step after updating
Reconnect/pair iPhone in Xcode's Devices window and Trust the computer.
NEW: After pairing the iPhone make sure you check the "Connect via Network" checkbox for the newly paired iPhone. By default Connect via Network is unchecked.
Important step after re-pairing device
The "NEW" steps are not steps I've seen in previous answers, so I posted this answer.

Or Xcode is just not smart enough to know that your iPhone iOS version is newer than the one supported by Xcode! I had this issue, been trying all solutions until I updated my Xcode from 11.4 to 11.5

So this started for me after I updated Xcode to version 12, and my iPhone to iOS 14. The fix was as listed above (multiple times) to unpair, reconnect, and trust the computer, BUT only after changing the target to iOS 13 in Xcode did those steps actually work. Once it was reconnected I was able to switch the target back to iOS 14 inside Xcode. This one was frustrating.

In my case, I was using an USB to USB-C adapter which apparently my laptop did not appreciate. Switched to a usb-c lightning cable and poof - everything just works. Now I'm mad that I already reset my network settings!

I had issues with Xcode 11.5 and iOS 13.5.1
Sucessful:
Remove the Logitech Wireless Mouse USB Receiver that was plugged into
the USB-C to USB converter (I use this converter to connect both the
Wireless mouse AND my iPhone via USB to Lightning cable). This
REPRODUCABLY caused the described error "Failed
_shouldMakeReadyForDevelopment check even though device is not locked" to reappear when I repeated the re-pairing procedure with the
Logitech adaptor plugged in
Not successful:
Unpairing (from both Macbook or iOS - Settings - Developers - Unpair)
unplug, Repkug the USB Connector
Connect via Network setting
Restart iPhone, MacBook, ...

I had some success turning Bluetooth off and on again on the phone. Still, the watch often disappears.

None of the above worked for me. With iOS 14.0.1 and XCode 12.0.1.
I suspected it is an Apple bug with wireless communication to-from the device.
Since my iPhone can be used as a hot spot for my Mac, I found that once I used my iPhone as a hotspot from my Mac, XCode was able to upload the App binary to my iPhone and debug.
So I'd say if nothing else works then try to use your iPhone as a hotspot for your Mac, and then you should be able to wirelessly debug.

For me it was the exaxt opposite of the message. Xcode was up to date, but the iphone I was trying to run on was not updated to the latest version of iOS. 13.7 was the version at this time.
After updating to 13.7 the iPhone, everything went back to normal.

I rebooted my iPad, and it eventually worked...

My problem was building the application with a production provisioning profile.
in my case, the solution was to switch to the development provisioning profile.
Then it worked :)

Mine got resolved when I updated the Xcode from 12.2 to 12.3 Beta.
My iPadOS version is 14.2.
Even though XCode 12.2 supports OS 14.2, I faced the same issue. It is the XCode bug.

Related

Virtual Mac XCode iPhone debugging - device not connected issue

Please bear with the question (I know there are many repeats but I am sure this is unique) and read this first before you think of downvoting due to duplicity:
This is pertaining to iPhone connected to my local desktop and XCode running on remote VM
The USB gate software is connecting my iPhone to the VM
It's not that XCode fails to detect it altogether.
It's an iPhone 3GS running iOS 5.1. XCode version is 4.6.
Now the issue:
I have the iPhone UDID added to my Apple developer Profile.
I can very well detect the iphone connected into XCode once I do all the necessary sharing for the USB Gate software. I see the yellow light.
It shows yellow light, shows some of the apps installed while some process is running in background. It shows the UDID and usual stuff.
After few moments though, XCode displays the message Device not connected.
I have already added support for armv6 inside my app, so that possibility is ruled out.
What to do?
PS: for the first time it launched iTunes after detection. However then onwards I disabled auto-syncing from iTunes. And now iTunes doesn't detect it even if I launch it explicitly. XCode does detect it, but after some time disconnects it automatically.
I successfully connected to remote VM installing Logmein's Hamachi VPN software on both my host and VM. Using it, XCode could detect my iPhone device once shared via USB Network Gate.

how to run apps in device in xcode 4?

Hay every one I'm working in iphone. recently I installed xcode 4 but i can not run my apps in device. I select run destination as ios device bu when I run my apps it say
"No provisioned iOS devices are available. Connect an iOS device or choose an iOS simulator as the destination." pls someone help me. any help will be appreciated. Thanx.
you need an active iOS developer program account. Otherwise you are only able to test your programs in the simulator!
to manage your devices, please read the following article:
Managing Devices and Digital Identities
If you don't have provisioning certificates and all that, do what Sascha said.
If you do, you might be having a problem that I ran into. I was trying to run apps on an iPod touch 2g with iOS 4.2, and I got the "no provisioned iOS devices" problem, even though I had a provisioned device connected. So I went into my project settings and changed "build target" from iOS 4.3 to iOS 4.2, and once I did that, my device showed up.

xcode 3.2.5 with iOS 4.2 crashes when deploying to device

I've updated for xcode 3.2.5 and iOS 4.2 but now everytime I deploy to device (ipod touch 2nd generation with iOS 4.1 installed) it crashes the ipod and forces it to restart.
then it restarts the device and I can go open the application regularly through its icon.
but the real pain here is that everytime I deploy to the device I have to wait for it to crash, restart the device which takes ages and them open the app by clicking on its icon.
I've already changed the target sdk to be less or equal then 3.0, hence the app working after a restart as it should.
Anyone could help me with the reason for crashing the device?
Thanks in advance
There are plenty of issues with Jailbroken devices at 4.2.1; from Xcode not collecting the Symbols for 4.2.1 from the device, to issues with dylib's loading at debug time. Many debugging facilities won't run on a jailbroken device either. Check to see if you've booted in tethered mode in redsn0w, develop on a different device temporarily, or downgrade to 4.1/4.0.1.

Install Dev App on IPhone - Not in List

I have recently provisioned my IPhone to be a development device when I had version 3.1 of the firmware installed.
I was forced to upgrade firmware last night due to 3.2 being the base supported firmware by the framework I am using. I am now running 4.1 of the iOS firmware.
Before I did this the device showed up in XCode as a valid target to run my application aside from the simulator. Now when I open xcode I never see my device in the list. I also look at organizer and it is enabled for development as I am able to look at the console for the device.
Also the provisioning profiles are still there.
I am at a bit of a loss as to what is wrong. I appreciate any ideas people may have as to how I can fix this.
You're saying it shows up in the Organizer, but not in the "Overview" list in Xcode?
Are you perhaps still running the 4.0 SDK, and does it show up with a "yellow light" in the Organizer along with the error message like "this device's firmware is too new for me"? If so, updating to the 4.1 SDK should fix your problem.

Xcode 3.1.3 - Organizer The device is not activated. Please activate it using iTunes

I recently upgraded my XCode SDK to version 3.1.3 and my iPhone OS to 3.0. It is important to note that everything was working fine when I had OS version 2.2.1 in my iPhone. My iPhone Touch device is not jailbroken and I have a valid provisioning profile in the organizer which is linked to my iPhone Touch however it has a yellow circle next to it.
This is because in the organizer under devices it displays the ipod with version 3.0 (7A341) and then it Reads (in the section where the provisioning profiles should go):
This device is not activated. Please activate it using iTunes.
When I go in xcode and build the application it does so just fine, and the code signing is in fact assigned to the correct provisioning profile. But whenever I try to run it in the device I get "No provisioned iPhone OS device is connected.". This is because the organizer keeps telling me to activate the device using iTunes.
I have iTunes version 8.2 and the device is there and i can sync it just fine, however it keeps displaying that message in XCode. I have tried restoring my ipod about 10 times but I always get the same result, I have also tried powering off the iphone Touch and the computer but nothing seems to help.
Does anyone else have this problem?
I have the same issue, but I have an ipod touch version 2.2.1. It used to connect to Xcode 3.1.2, then I upgraded to 3.1.3 and it doesn't work. I reverted back to 3.1.2 and it does not work. It does work on a friends mac with 3.1.3 so there is something wrong with my iMac. Firewall is disabled. It connects to iTunes fine and it is activated. Just won't show up in the organizer. Rebooting does not work. I reset, and restored it and it still doesn't connect. The fact that it connects to a friends mac and not mine leads me to believe that upgrading the ipod to version 3.0 would not fix the issue.
Jimi
http://developer.apple.com/iphone/index.action#downloads
download and install it
Leopard Downloads
* iPhone SDK 3.1.3 with Xcode 3.1.4
* iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
open mac terminal
$ ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2\ (7D11)/ /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3
my space write in here
http://leefj.spaces.live.com/blog/cns!ADF54DD0A549AD9B!462.entry
Thanks to flycomputer i was able to resolve my problem with iphone os update to 3.1.3.
But i didn't need to make the symlink so check if it's done by itself or not before lunching the command :
$ ln -s /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.2\ (7D11)/ /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3
This usually means your Phone is not activated with your provider. Can you actually make phone calls with your iPhone? Did you restore your phone via the XCode Organizer or iTunes?
Well it is not actually a phone it is an iPod Touch. I tried to restore it both via Xcode Organizer and iTunes with the same results.
This isn't the error I get, but try rebooting the iPod. Hold down the sleep/wake button on the top for a few seconds. When it asks if you want to turn off the device, move the slider to turn it off. I usually wait a minute and power it back on. This always works for me.
You are probably behind a firewall, with anti-spyware protection activated.
iTunes needs to connect properly to web (Apple, I guess) in order to activate correctly your device.
Disable the firewall, then launch iTunes, that worked for me.
JR