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.
I am working on ionic application. I am able to debug app in real android device.
So, is it possible to debug ionic app in iPhone by connecting it through USB cable from CPU?
You require an iPhone and a mac with XCode installed.
If you are building for iOS, you’ll need to sign up for an Apple
Developer account to test as a native app on an iPhone or iPad.
Unfortunately, this costs $99 per year (don’t blame us!). Once you
have an account and you have set up Xcode with your certificates to
enable device testing, you’ll want to open the Xcode project from
platforms/ios/ and do your testing from Xcode.
Source
As you have mentioned you do have an iPhone and Mac with XCode, see the steps below:
Run ionic cordova prepare ios
Copy across your platform/ios folder to your Mac
Open the XCode project on your Mac that is located in the platform/ios folder.
Select a device or target simulator in XCode and then click on the play button to start debugging.
I want to develop with Xcode 6.4 on iOS 8.4 devices without a developer account.
I did Taig jailbreak on my iPad mini retina 2 and followed this guide:
How to debug iOS apps in a jailbroken device with xcode 6.2
I modified the SDKSettings.plist file with the following values:
ENTITLEMENTS_REQUIRED to YES
CODE_SIGNING_REQUIRED to NO
AD_HOC_CODE_SIGNING_ALLOWED to YES
I can install the app on the device but the debug does not work (the app crash on the device when launched from Xcode).
To enable the debug I add the Entitlements.plist file (with "Can be debugged" to "YES") to my project and trying to execute I get the following message:
"App installation failed
The application could not be verified."
I missed something?
Everyone has the debug working on iOS 8.4 with Xcode 6.4?
Thanks in advance
Try to add to the Entitlements.plist:
"application-identifier" and
string value: "$(AppIdentifierPrefix)$(CFBundleIdentifier)" (both without quotes).
If it does not work you can check the log (Apple iOS Device logging)
EDIT: I am able to run my app on iOs 8.4 with this scenario
I have XCode 4.6.2, and on my iPhone I now have iOS 6.1.3. When I plug my iPhone into my Mac, XCode doesn't let me select it as an option for testing, as my project settings are to work on 6.1, and the dropdown doesn't have any newer options. I went into preferences, and the only available downloads are past versions of the simulator.
How do I get XCode to allow me to test using 6.1.3?
Open Organizer from Xcode,in that devices, find your device and click the option to use for development
I renewed my developer license and figured out that my private key was on my other laptop in India so I created new certificates and accidentally updated my iOS to the latest version and there is no green light next to iPhone device in organizer window and i am getting this error, I am on XCode 4.2 - "No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination" There was also no option to "Use for development" when I clicked on the device.
I have revoked my certificates and also made new certificates
Cleared the certificate history.
Restarted XCode and also my iPhone.
Installed the certificates in my library as well
None of the above has helped! Any clue/help would be appreciated
You need to update your xcode after that it will work.
You have to update your Xcode to 4.5 (new) version. And after that for run previous iOS you have to add SDK for previous version from Xcode > Preference > Download > Component there you can see various simulator for iOS 4.3, iOS 5.0, ios 5.1, and iOS 6.0. Download this simulator and you are good to go.
Hi the solution is simple...
You need to add a device click SHIFT + CMD + 2 and add devices
in IOS6 you need to click on menu -> windows -> devices and add it
.
- click on the left corner side on the project
- click info
- in the Deployement target
- in the IOS Devewlopment Target click the version available for you system