Xcode won't detect device - iphone

I'm having a bit of an issue testing my app using my iPhone. Last week I upgraded to Xcode 4.3. I was able to test my apps on my iPhone (which was running iOS 4.3). Today I upgraded my iPhone to iOS 5.1 and now Xcode wont detect my iPhone (btw SDK is 5.1).
I'm not too sure what to do, I've even tried changing the Deployment target in Xcode back down to 4.3, but still nothing.

Make sure the device is "Enabled for development" under Organizer in Xcode. I've seen cases, where Xcode doesn't recognise the device, because it wasn't setup to be a development device.

I had this problem but my device was already enabled for development. Here are the steps I took to get it working.
If you want to cheat, try the last step. That's what got it working for me!
Try restarting both Xcode and the device. Separately.
Make sure you're using the latest iOS SDK under Base SDK (in Targets / Projects > Build Settings) and that it's a greater version that what's running on your device
Check Project > Build Settings > iOS Deployment Target is less or equal to what's on your device.
It turned out, when I'd created a new project, it had chosen an iOS Deployment Target greater than my device version.

Related

Can not run and build code which is on xCode4.2 with iPad with os 5.0

HI i am new in iPhone i have tried to build application on xcode4.2 and i have iPad with os 5.0
but when i start application to run i got following message
Xcode cannot run using the 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.
can anybody help me how to solve this problem i have tried so much but could not find any solution from googling also
In your project's Build Settings, ensure that the deployment target is set to "iOS 5.0"

Building/Running IOS 5.0 from xcode on 4.3.3 Device

I am trying to run an application in xcode 4.2 to IPhone 4.3.3. All what I see to run against are:
IOS Device
IPad 5 Simulator
Iphone 5 Simulator
I tried to change my Code Signing, but still did not work. I am getting this message:
"Xcode cannot run using the selected device.
No provisioned IOS devices are available with compatible
IOS version. Connect an IOS device with a recent enough version
of the IOS to run your application or choose an IOS simulator
as the destination"
I already have the provisioning already setup successfully for my IPhone 4.3.3.
Thanks in advance.
Select the Project's Target. Under the Summary, make sure the Deployment Target is set to the lowest version you want to support (4.0, 4.3.3, whichever you prefer).
Look at Deployment Target Settings in Build Settings. Set it to 4.3
Make sure your iOS deployment Target is set to iOS 4.3 or less

Xcode 4.2 Lion not installing / running project on older devices. iPhone 3G 4.2.1

XCode 4.2 Build 4D199 on Lion with iPhone 3G IOS 4.2.1
Project with Base SDK 5.0 and Target 4.2.
On this phone and on older iTouch the debugger never seems to startup. After pushing RUN the project compiles and then the Debug entry is in the Log Navigator with the Spinner Running. The spinner never stops and the app does not get loaded on the iPhone 3G.
Any clues on how to fix. This was working fine before the Lion Upgrade.
Need to test the older devices. Newer devices seem to work fine.
Device seems to be provisioned fine, etc.
Probably because armv6 is missing from the architectures for the Target.
Click on your Project in Xcode, then click on the Target. Double-click on 'Architectures', and delete what's current there - probably something like $(ARCHS_STANDARD_32_BIT) - using the '-' button. Next, click on the '+' button and add 'armv7', then add 'armv6'.
Hopefully, that should help.
I found when I would start a new project in xCode 4.2 (Build 4D199) it would not build to my iPod touch running 4.2.1. While I did have to set my architectures to include armv6, that alone did not do it.
In my project's Info.plist file xCode had set "Required device capabilities" to include 'armv7'. I removed that now everything is working fine.
I hope this helps someone else.

Xcode 4 will no longer run apps on 4.2.10 device (CDMA iPhone)

Up until today, I have been able to test my app on my CDMA iPhone, running 4.2.10. I am building against the 4.3 SDK, with a deployment target of 4.0.
After restarting my phone today, Xcode will no longer allow me to test the app on my phone, with this message in the Organizer window: "The version of iOS on "iPhone" does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed, or update to the latest version of the iOS SDK"
Unfortunately there are some bugs with location services in the simulator, so I can't use that for testing either.
Can I even install the 4.2 SDK in Xcode 4? Is anyone else having this problem, or (hopefully) does anyone know how to fix it? Thanks for any help!
If you install xcode 4 it will actually gather the build chain from your phone and use it for compiling. You can see this in the organizer window (Window->Organizer?).
You know I had that same issue i found that I had to download the latest xcode and reinstall because for some reason the ios that came with xcode knew how to build on my phone. Sorry man.

Base-SDK of v4.0 means it won't install on 4.1 or 4.2 devices?

I was using xCode v3.2.3 and SDK 4.0 to write iPhone apps that worked on my iOS v3.1.3 device... as well as v4.0. (Deployment target set to 3.1.3. Base SDK set to v4.0)
Does that mean everyone that uses my app will need a minimum of iOS 3.1.3 and a maximum of v4.0? Or will they also run on v4.1 and v4.2?
Second part of my question:
I now upgrade my iOS v3.1.3 to v4.2.1.
Xcode now says my v4.2.1 device is now no longer provisioned.
Doesn't a Base-SDK setting of v4.0 mean apps will also run (or at least install) on v4.x?
No. Base SDK just means that your app will be built against the iOS 4.0 libraries. Any 4.x device will be able to run a release build of your app, but for debugging, Base SDK and the iOS version on your device must match. In the end, you need to build your app with the newest available Base SDK anyway, because Apple won't accept apps built for older SDKs into the App Store.
No, they will. iOS has Backward compatibility.
I agree with Irene. I found the solution:
The hint came from here: Can't make Xcode 4 run a barely empty project using SDK 4.2 (runs fine in 4.3)
And this is how i resolve: my xcode 4.0 my SDK 4.3 and my Ipod touch device is 4.2.1 - You see it is backward compatible. There are 2 things you must do in order to resolve. 1) In your xcode 4.0, You click on your project name under Target to ensure you change the target not the Project setting. Find the row >IOS deployment target to the version of your device in my case it was back to 4.2.1 ipodtouch so i set 4.2 (do not worry about basesdk it is for your application not the same as your application's target. 4.3 basesdk requires you provide codesign so you have to select code sign if do not have one apply for one looking up in Apple website or google)
After setting your target to compatible version with your device you now can go to "set the active scheme" that is where you select which device to install and run on including the simulator. So you will find you device there select it and you are good to go.
And if you still can not get it going. You can try to select your project under Project this time adn set the ios deployment target to your version mine was 4.2 ipodtouch ios. Then go select "set the active scheme" that is where you select which device to install and run on including the simulator. So you will find you device there select it and you are good to go.