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

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"

Related

Xcode won't detect device

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.

application not running on a device in Xcode 4.2

Everytime I run my application in Xcode 4.2 with iOs 5, Xcode says it finished running on my device but actually it doesn't build there, it just finished running. But when I run my application in Xcode 4.1 it runs in my device. by the way, my device is an ipod Touch 2nd gen with an iOs version of 4.2.1. Can anyone suggest what must be causing the problem? thanks
In your project target -> build settings
In the field "Architectures", add "armv6" and you should able to build and run the app with armv6 device s

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 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.

Unable to run simulator for iPhone3GS from xcode3

I'm unable to run simulator for testing iPhone3GS below version of 4.0. I have built my app with xcode4 and now, I want to test it how it works in iPhone3GS. I have read that I should install previous version of xcode, so I have installed xcode3. My IPHONEOS_DEPLOYMENT_TARGET is set to 3.1 in projects settings (xcode3). But still I can't see any iphone versions below 4.0 in simulator select list. What am I missing?
Well first of, the latest version of Xcode 3 only comes with the iOS 4.* SDK so there is no iOS 3 simulator.
You will need to installe a version of Xcode 3 with iOS 3.* SDK to get the 3.* simulator, but you can only get them in de bundle version of Xcode.
What I do is test my apps on a device running iOS 3.1.2 with Xcode 4 and dropping support for iOS 3.* in new projects (94% of my user have switch to iOS 4).
in this case you have to click the target section of the xcode and thre you have to chage the setting >build>latest ios.
You can make and add hoc build and install it on an real device that run the desired os version.