Xcode 4 -- "no provisioned iOS device is connected" with iPod touch 2 - iphone

I have two iPod touches. One is 2nd generation running iOS 4.2.1, and the other is 4th generation, running iOS 4.3. I have the same provisioning profile installed on both of them.
My app runs just fine on the 4th generation device.
With the 2nd generation one, when I look at my device in the organizer, everything looks fine, there is a green dot next to the device, and it shows that the profile is installed. But when I try to run the app, I get the above error.
The deployment target for my app is iOS 4.0.
As of a week ago, I was using Xcode 3, and everything worked fine. Over the past week, I upgraded to Xcode 4, and also had to update the profile, as the old one expired. I did install the new profile on both devices -- and the above situation ensued.
Incidentally, if you are a new developer and you arrived at this question, I suspect your problem is different from mine. This question has been answered in the generic form many times before; several of them are linked from here.
I've tried reinstalling the profile and also restarting both my device and computer. No luck.

What I had to do was change the settings of the scheme. I had it set to "iOS device". This worked fine for my newer iPod. But for the older one, I had to change it to the device name of my older iPod. It was of the form "William Jockusch's iPod (4.2.1, overriding to Base SDK 4.2)".
Annoyingly, Xcode appears to reset this setting every time the device is changed. So I have to set it again every time I swap devices.

Try delete profiles (not just reinstall) in the Organizer and reinstall it, delete profiles in the device (not through Organizer) then reassign profiles in Build settings for all iOS SDK and Debug mode.
It might do the work.

yeah renaming the scheme worked for me too. this is pretty helpful! I was able to duplicate the scheme and add a new one, so it saves it when I close and open xcode again.

Related

How to test my ios app in ios 4.3 version?

i am running with the latest IOS Xcode and itunes versions now.
i have released one of my apps one week ago and 4.3 users have a crash a a specific point.
there is no option to test my app on the simulator, its gotta run on a real device, any ideas how can i do it?
http://www.redmondpie.com/downgrade-5.1-to-5.0.1-5.0-4.3.3-4.3.5-on-iphone-ipad-ipod-touch-how-to-tutorial/
That link can show you how to downgrade
Otherwise the simulator should be a good place to test unless your game has a "power" attribute, like a game, in that case the simulator (which is essentially the iMac) will perform better and different than a device. Otherwise you can go into the project/target settings and change the build version type to a lower version

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 Could Not Support Development

I recently reinstalled OSX. It has been a pain rounding up all of my certificates, etc, but I finally am back. However, when trying to install an app on either of two iPhones 3G's I have, they both say:
Software version: 4.2.1 (8C148) | XCode cannot find the software image to install this version. | Could not support development.
What is going on? Both iPhones list themselves as up to date in iTunes, and iOS developer's center only lists 4.2 as the available SDK.
EDIT: I do have a paid membership, and I have recently had test apps installed on both of these devices.
UPDATE: I removed all 3 ( the 2 included ) of my devices from the provisioning portal, and deleted them from the organizer, closed XCode, detached device, restarted, plugged in device, no luck.
I just got this error with Xcode 4.0.2 and an iPhone 3G running 4.2.1 (the final 4.x allowed on a 3G). I restarted Xcode and it went through the process of collecting debug information, then gave me a green light. Other answers here say that you may also need to quit iTunes for this to work.
Conclusion: Try restarting Xcode. Quit iTunes first if it was open.
Classic ;-)
connect the iphone
Go to Xcode -> Window -> organizer
find your iphone and press "Use for development"
As Jacob said: try adding / removing your device as well
If you still get this error you have an out of date XCode
I had the same problem with IOS 5.0.1 and Xcode 4.2. I restarted Xcode as other suggested. However, I also needed to close iTunes which had started automatically and eject my iPhone from iTunes. Then, restart Xcode and it worked fine.
Just encountered this problem. First, I had both an expired certificate and expired provisioning profile, so had to fix both (and I do this so rarely that it took a good 45 minutes). Then still got the error. Tried phone off/on -- no joy. Shut down Organizer and restarted -- no luck there either. Killed Xcode and restarted, with no luck.
Finally, I turned off the phone, shut down the Mac, turned off the overhead lights, and spun around three times clockwise in my swivel chair, then started everything up again. Then it worked.
(I suspect that iTunes was active and had something to do with the problem.)
This one worked for me just now (power cycle the iOS device)
I just had this happen as well. None of the above solutions seemed to work. In the end, it turned out to be a faulty iPhone charge cable. So check that too if you see this message!
Try freeing up memory by closing down unnecessary open apps. I tried restarting XCode and shutting down iTunes but still had the problem. Then I noticed I was running low on memory on my 4GB MacBook White. I closed down all non-essential apps and when I was done the green light had lit up beside my iPad3 and I could run my app on it.
For me the combination of Google Chrome with lots of tabs open and XCode often is enough to use up all my available RAM; where 4 Gigs used to be plenty of memory for iOS development, with XCode 4.2 it's feeling a bit cramped.
Happened to me when I changed the name of my phone from "mark X's phone" to a more anonymous name. Removed profile, reconnected phone, worked automatically from there.
I just had the same problem.
In my case I had to
open itunes and agree to a new software agreement.
I first agreed to it on the developer portal and then from within
itunes.
I closed itunes, restarted xcode and my Ipad was good to go.
Xcode 5, iPhone 4S, no new name or any other changes that I can think of.
I simply quit iTunes, disconnected the cable, reconnected the cable. Then the organiser gave me the green light.
For me this was caused by a lack of free storage space on the device - after deleting a few videos and app documents, Xcode organiser was able to complete the "symbol copying" etc process. It doesn't appear to need much space for this, so if iTunes doesn't show the storage as being nearly full it's almost certainly not the cause for other people.

Issue with CoreLocation and Adhoc Distribution

We're developing an application that uses CoreLocation as a primary feature, where need to poll the GPS over an extended period of time. Everything works fine when we install via build&run in Xcode, but whenever its installed via adhoc using hockey (ipa generated using build&archive->share_application->distribute_for_enterprise), something very odd is going on with CoreLocation. Here are the problems we're experiencing; (1) the "Allow xxx to access your current location" dialog is never displayed, (2) the location icon on the taskbar is never shown, and (3) the delegate method, locationManager:didUpdateToLocation... is never called.
To make matters even more confusing, this issue is only reproducible on the developer devices. Beta testers are not experiencing this. We have tried removing all provisioning profiles from the developer devices and from Xcode, but the issue still remains. We have also verified that we are building with the lastest provisioning profile. I was only able to install via adhoc onto my dev phone after I completely wiped it and set it up as a new phone in iTunes.
Has anyone else experienced this issue or something similar? Any suggestions/recommendations?
Tested using Xcode 3.2.4 64bit and iOS 4.1 (8B117)
Possibly related to iphone Location Services code that works on OS 4.1 in appstore?

iPod touch debugging: Error on install/run only if app exists on device already?

I am using an iPod to test an app. The device is all set up with the right provisioning profiles, etc-- that's not really the issue.
But every time I start the app from Xcode on the device, I get the "A signed resource has been added, modified, or deleted." error from the Organizer window.
Wait, I know, you think it's a provisioning profile problem.
But here's the kicker: if I just delete the app from the iPod (using the main screen) and try again, it works fine. I only get this error when the app is already installed. The other kicker is that this behavior doesn't happen on an iPhone that I have for occasional testing-- on that device, I can start/restart/restart indefinitely. But using the iPod, my compile-run-test cycle is annoyingly slow since I have to manually delete the app each time.
Any ideas?
I'm using Xcode 3.2.2 (prerelease) FWIW. The iPod has stock OS 3.1.2 on it.
Thanks!
I had a similar problem with the original 3.2 beta 1 and my iPhone running 3.1.3. However, I did not need to delete my app to workaround it. I was able to get around it by using the clean all targets. It seems you've done that though. :(
That said, with the 3.2.2 beta 2: IDE 1643, Core 1644, ToolSupport 1631 - my problem went away.
From the release notes Beta 2:
FIXED: In iPhone SDK 3.2 beta 1, some users saw the message "A signed resource has been added, modified or deleted…" when rebuilding their projects. This has been fixed for beta 2.
Are you sure you're running Beta 2? Perhaps a re-install of xcode might help? I assume you've tried power cycling the iPod Touch?
The only thing I can tell you is file a bug with apple here and hope they fix it
I had the same ussue a couple of days ago. My problem was I had created a distribution build and installed it on my iPod through iTunes. After removing the app from iTunes and syncing the iPod Xcode stopped complaining when making new builds.
Otherwise you could try "Clean all targets" under "Project" in Xcode.
Also had this problem, try turning off the passcode lock: http://bencollier.net/2010/03/debugging-on-iphone-requires-app-deletion/