Device is not recognizing in xcode organizer window - iphone

Thanks in advance
I attached a device to my mac but it is not recognized in the xcode organizer window. It is showing in itunes.It is showing yellow light in the organizer.

Device should be added to device list on provision portal. After that, open it's page in organizer with device attached and press button that says "Use for development". If you don't have that button and still can't use device for development, you're probably have wrong SDK installed.

A solution that worked for me was opening iTunes.
In iTunes it was asked to trust the device and then it recognised in Xcode organizer.

Related

Xcode doesn't see my iOS device but iTunes does

I have a strange problem.
I have an iPad with iOS 5.0.1 (9A405) and iOS SDK 5.0.1 with Xcode 4.2 (Build 4C199) installed on my Mac.
Xcode doesn't see my device. It says "iOS Device" not "Sauron's iPad" as usual.
(I am sure that device is connected because I see it in iTunes.)
Xcode denies to start my application on device.
It says:
"Xcode cannot run using selected device. 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."
Xcode sees my other iPad with iOS 4.3.3 and can run applications on this device.
I have tried to restart my Mac - without result.
I also checked provisioning profile, developer certificate, etc.
Does anybody have ideas?
Even though this one does not address the specific problem of the OP, it might be a solution for other people finding this question.
In some circumstances, Xcode will not recognise (won't even see) a connected device that was previously recognised, even though there were no changes in Mac OS/iOS/Xcode versions. This seems to happen if you connect the device while the Mac and/or the device are locked when you connect them. The device will ask if you want to trust the computer even though you already did so, but the device will still not be visible in Xcode.
Restarting Xcode or the device do not seem to have any effect. One solution is to reboot the Mac. Another much quicker solution is to restart usbmuxd:
Quit Xcode
Disconnect the device
In a terminal window, type: sudo pkill usbmuxd (it will be restarted again automatically)
Restart Xcode
Connect the device
Your device should now be visible again in Xcode!
Select Window ➜ Organizer in Xcode.
Now under Devices, select your device.
If it is not ready for development then click use for development.
If above doesn't solve your problem then from your project settings, set deployment target to one which your app is developed for or lesser.
Otherwise there is some issue with certificates and provisioning profiles. Make sure your device's UDID is added in the provisioning profile you are using.
Had the same problem , restarted xcode and it found my phone again.
I get this problem once, using a not official Apple cable.
Hope it helps.
I ran into this issue today where Xcode 8.2.1 suddenly decided the connected ipad (ios 10.2) was no longer connected. Unplugged, plugged back in, rebooted my macbook, and tried numerous recommendations above.
The thing that fixed the issue for me was shutting down and rebooting the ipad device itself.
To others who might have the same issue and the answers above don't work: Make sure that the iOS version installed on your device matches the iOS SDK version you have installed on your mac. If these don't match you are unable to build to the device.
In my case I did next steps
Quit XCode
Disconnect device
In your terminal sudo launchctl stop com.apple.usbmuxd
Relaunch Xcode
Connect device
May be my answer is helpful to new developer.
Just follow these step , You can connect your iPhone/iPad with X-code.
I just barely tried every solution suggested above. The only thing that worked and resolved my issue was to go into xcode's "Organizer", right click on my iPhone, click on "Remove from organizer" and then wait about 10 seconds while xcode automatically re-added the device.
I previously plugged in my phone and itunes recognized it fine and synced with it, etc, but all xcode said in the organizer was "Device is not currently connected", which it was most definitely connected if itunes was syncing with it and not syncing over wi-fi.
Why xcode needed me to delete and re-add the phone is beyond me, but it works great now that I did this.
I tried all of the above to no avail. I had been using the phone for ages and suddenly the Organizer thought "this device is currently not connected". A reset of the phone fixed it for me (hold Home & Power until the Apple logo). I did so with it still connected to the MacBook, but it shouldn't be necessary.
For Xcode 7 (and possibly above),
go to Window -> Devices,
hit the plus sign at the bottom and select the device connected and hit next, then Use for development.
This only works if Xcode is reading your device, but you aren't able to run your app on the device.
Also make sure the device's OS version is greater than or equal to your app's Deployment Target OS version.
If none of these work, try simpling restarting your iphone or device! Works every time for me (:
Here is how I figured out the problem. Go to Xcode -> Window -> Device and Simulators -> Devices. There you could see Errors and Warnings. I found that my Xcode has to be updated because IOS version of my device is higher.
Xcode did not see my iPad, iTunes also did not see my device.
Rebooting Mac corrected the situation.
Had same problem with some non-licensed cables. Works fine with Apple's & Belkin's USB cables.
My app worked on all simulators but not on my device. I tried just about all the steps from each comment and didn't have any luck. I went to my device settings and switched my "Personal Hotspot" from off to on. Then it was all good!
Have you tried to delete and re install the device in your Apple Developer portal? If yes, try to upgrade your xcode to 4.3.2, I remember that I needed to update to xCode 4.3.2 after updating my iPhone to iOS 5.1
After updating my iPhone to 10.3.3, Xcode 8.3.3 cannot find it in the Device window but iTunes can. Restarting Xcode fixed the problem.
After 20 minutes of debugging, I realized I had to hover over the up button (🔼) at the top of the Devices picker in the top left hand corner, to the right of the run app button 😂
The error I had in XCode was "iOS version lower than deployment target", which I didn't know how to fix. The error was displayed where the iPhone should have been indicated as a Device (upper left). I selected the project in Project Navigator and noticed that the iOS Deployment Target was set to 11.3 but when I checked my iPhone it was set to 11.2.1 (or something lower than 11.3). So I opened Settings on the phone, scrolled down to General and tapped Software Update. Since the update said it was scheduled but didn't start, I decided to take the SIM card out of my other phone and put it in the iPhone I was using for testing. Then the upgrade started quickly. After the Update finished on the phone, however, XCode still didn't recognize the phone. I unplugged the USB cable but didn't hear any sound, so I plugged it into another USB port on the computer and then heard a sound. Then XCode noticed the phone. So the problems were that the iPhone didn't inform me that I had an Update (or I ignored it and forgot about it) and it may have needed the SIM card, and I had a bad USB connection.
Had the same problem. In my case it was my usb cord.
I had this problem. I somehow registered the device for generic team on apple. I don't remember how I did it now. Then I was able to overcome this error.
Just unplug the cable of iPhone with your mac and then plug cable in mac work for me.I hope it's work for someone.
Xcode 6.3 didn't see my iPhone running iOS 8.3 even after a computer restart. I then restarted my iPhone and everything worked again. Love buggy software!
When you trying to build and run the current scheme but encounter this alert message:
"The run destination iPhone is not valid for Running the scheme."
Plus you already check your phone and it is connect to your Mac properly,
all you need to do is just simply restart your Xcode and build it again. That will do the job.
Ran into this issue having upgraded from XCode 9 to 10.1. No devices at all were appearing in XCode, despite performing all the steps listed in other answers.
For me the solution was to do a clean CMake build, deleting the old Xcode project files.
Xcode 10.2.1 was not recognizing my ipad mini. I unplugged and rebooted the mini and it became visible.
The problem was solved for me when I used an original cable. You also get an original cable.
I tried all the ways here but still didn't work. I plugged the cable that I connected the phone to the computer instead of another socket and it worked.
This is absolutely bizarre!
Xcode has been working fine with my iPhone for weeks, and today it stopped working. None of the tips above worked.
Finally I switched the cable from the left hand side port to the right hand side port, and now Xcode is recognizing my phone! PHEW!
But only on that specific port. Going back to the left hand side port still doesn't work!?!?!

iPhone - Cannot run apps from XCode on iOS 5.0.1 device, since iOS update from 5.0

I have just updated my iPhone to iOS 5.0.1 and XCode doesn't recognize it anymore as a valid device to run applications.
I have gone to the organizer, reset the device as a development device, updated my components and library... but still nothing. The device doesn't appear in the available destinations into the main window popup...
How can I do to test again on the device ?
Disconnect your iPhone.
Quit iTunes & XCode.
Turn off and restart your iPhone.
Connect your iPhone, wait for itunes to finish syncing (if you have it set to launch automatically).
Close iTunes, then open XCode.
Go to organizer and see if it recognizes the iPhone for development or will let you re-enable use for development.
If all that fails, reset your iPhone (gasp!) then do all this again. =(
Select your device in Xcode's organizer, and the click "Add to Portal". Xcode will communicate with the mothership, decide your device is OK after all, and it will then once again become available for testing.
Also if your deployment target is higher than the OS version of the device, it will not show up as a valid device.
it worked for me like this:
select the main project on the left window of Xcode
select the "summary" tab on the central window.
change "deployment target" to 5.0
click "validate settings"
that's it. Now my device is on the list!
select the device and click Run
Xcode 4.3.2, Lion 10.7.3, iPhone4 iOS 5.0.1, (using Jailcoder)

Where to find iOS Simulator on SDK/Xcode4 download?

I need to use the iOS Simulator for a iPad website I'm working on.
I have downloaded Xcode4(http://developer.apple.com/devcenter/ios/index.action)
I'm now looking for the iOS Simulator and can't find it anywhere. Do I have to launch it via Xcode if so how?
EDIT:
I'm not seeing any Developer Folder. Someone on the App store said this on a rating of Xcode...
"Is the Developer folder put somewhere other than the top level of the hard drive?"
The easiest way to launch it is via Xcode, running an application you’ve just built. If you want to open it manually, though—for testing a website or whatever—it’s in /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/.
In the spotlight search for "iOS Simulator" - once it is found, launch it.
It'll probably open as an iPhone simulator so select from simulators' menu "Hardware -> Device -> iPad"
I found mine here:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk
Could be they moved it in the latest version of Xcode - I'm running 4.5.2.
You can download the XCode4 package from App Store application in your Mac. it must have the Simulator application and you can find it in > /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/.

What does the Xcode 4.2 preference "Support Wirelessly Connected Devices" do?

In Xcode 4.2, there is a new preference under the General tab called "iOS Device Discovery" with the checkbox option "Support Wirelessly Connected Devices."
What does this option do? Once checked, how can we use this new capability?
Plug your device into your machine.
Go to iTunes -> device -> Summary page and check the "Sync with this XXXX over Wi-Fi" option
In XCode, XCode menu -> Preferences -> General check the "Support Wirelessly Connected Devices"
Unplug your Device
On the device, go to Settings -> General -> iTunes Wi-Fi Sync and click "Sync Now"
In XCode, to go to Organizer -> Devices and cross your fingers.
Step 5 is what did it for me. I've been struggling for days unable to get my devices to appear, but when I wirelessly synced them from the device itself, the little wirelessly connected symbol popped up in the Organizer in XCode. Hopefully it will work you too.
Edit: The device has to awake for XCode to see it. When my device sleeps, it vanishes off the Organizer
Edit: This feature allows you to do all actions you could do on a device plug into your machine via a USB cable... only now without the cable. I've found this very useful to build to local testers with almost no effort on their part, run instruments like Leaks or Zombies to help track down pesky issues while your test is still comfortable sitting at their desk (instead of tethered to your machine).
Edit: This feature is no longer available as of Xcode 4.3.1 It will re-appear later when it has less issues (they are estimating in version 4.4).
2/2012 - This feature is still gone as of Xcode 4.6. There is currently no sign of it returning in near future, if ever.
10/2013 - Xcode 5.0 is here and there is still no sign the feature will return. We can pretty much assume it's dead for the foreseeable future at this point.
9/2014 - I have a report that wifi device capability does exist in Xcode 6.0. The hypothesis is having a device which is set up to wirelessly sync with iTunes. I have started testing, but so far have been unable to get positive results. Thanks to Steven Kramer for raising this possibility and the image.
In some future Xcode release, the "Support Wirelessly Connected Devices" option will allow you to debug your apps on your devices without connecting them to a USB port of your development Mac. I find this feature isn't ready for production use yet, but you may have better luck with it. Here is what you need to do to set it up:
Connect your device using USB, start iTunes, check "Sync with this iPod/iPhone/iPad over Wi-Fi" under its entry in Devices.
Start Xcode. Open the Devices tab of the Organizer window, and verify that your device has a green dot beside its name.
Disconnect your device from your Mac; verify that iTunes still sees it and can sync with it wirelessly.
Check "Support Wirelessly Connected Devices" under Xcode's Preferences. Wait a few seconds.
Your device should now have a green Wi-Fi symbol beside it. If not, toggle the "Support Wirelessly Connected Devices" checkbox off/on or restart Xcode, iTunes, and/or your device until it does.
You should now be able to select the device in the Scheme pop-up menu. Try selecting it and start debugging your app wirelessly. Good luck!
In my case, Xcode is able to install new development builds on the device, but it is not yet able to reliably run & debug it. Both LLDB and GDB have lots of trouble connecting to the device. Sometimes they do succeed, but it's not reliable enough for convenient development.
Please note that if you are using XCode 4.3, they have have removed wireless support, so following these steps will be in vain. Someone else also figured out they have silently removed the wirelessly connected devices feature: http://www.thomashajcak.com/wireless-support-in-xcode-4-3/
This allows the device to appear in the organizer if the device and computer are on the same wireless network even when not plugged in via a usb cord.
go to itunes, press sync, the device will be "re-connected", wait for a few sec, it should be showed in xcode
Another use for this switch is to address when Xcode is showing 100% CPU utilization when wireless syncing is enabled. By disabling wireless sync support, Xcode will only use hard wired devices for code deployment.

where Xcode organizer stores devices list

Can any body tell me where xcode organizer saves the list of devices attached with it???
I need that urgently. I am unable to add device from provisioning portal and need to add device from xcode organizer but that needs the device. i currently don't have the device just have the UDID.
I think i could add the device UDID in the xcode organizer list then i can add the device from the xcode organier to the program portal.
Regards
Abdul Samad
~/Library/Preferences/com.apple.xcode.plist
Look for the XCKnownRemoteComputers key.