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

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)

Related

Visual Studio for Mac - Configuration doesn't target device. Your configuration doesn't target a valid iOS device

Error Message:
Configuration doesn't target device.
Your configuration doesn't target a valid iOS device
I want to publish an iPhone app to App Store. So, I tried to perform Archive for Publish an iPhone App by selecting at the top main menu bar:
Build > Archive for Publishing
I have already select a device from the drop down menu at the main top menu bar. But I still receive above error message. What should I do?
I don't have a physical real iPhone. All I use is the iPhone Simulator. Is it a must to use a real iPhone to sign the App and submit to App Store?
Update
A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore.
You need to plug in a real physical iPhone into the Mac Laptop.
and target it as target deploy device. Then, this problem will solve.
Update: A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore.
For build device, select "Any iOS Device (arm64, armv7)" or Generic Device
The last option in the list of build devices is a Generic Device, under the heading Build Only Devices. This option works fine for those without a physical iPhone.
Dont know if this is still an issue, but I ran into that issue today: the problemn was that in the fourth column it didnt say "remote device". Click on in so it reads: Release, iPhone, APPNAM.ios, Remote device.
Than your good.

Xcode 4.5 Doesn't Recognize My Device iphone 5 (6.1.3)

I am using Xcode 4.5. When I plug my device in, it is not showing up on run button, and I have a message that it can't run using the selected device.. The Problem is this two days to go its working very well and i am installed many application before with this xcode 4.5 and iphone 5 (6.1.3) Dont know whats going on today Any idea Thanks in Advance
Open your Xcode organizer (Shift+Cmd+2), go to Devices tab, select your device in the list and press "Use for development" button
Check that your deployment target is set low enough for your device OS.
Xcode 4.5 supports till iOS 6.0 for iOS 6.1.3 you need to upgrade your Xcode to 4.6.0 version.
I would venture that your device isn't included in the provisioning profile you're trying to compile the code with. Check organizer and see if your device has your target provisioning profile listed. If it does, unplug the iPhone, restart XCode and the phone and try again.
EDIT
#Armaan Stranger also brings up a good point about XCode 4.5 and iOS 6.1.3 however I'm a bit confused as to how you had it working previously.

Compile iPhone only app to iPad device in Xcode

Is it possible to compile my iPhone app (which is developed for iPhone only) to my iPad with Xcode? I want to to this for presentation purposes, so I know it is not really compatible but I want to show it to a client and run it in 2x mode.
The iPad devices is attached in my provisioning profile.
When I try to compile it in Xcode it says:
Xcode could not run using the selected device
In Xcode I choose: "iOS device" (the other options in this menu are: iPad 5.1 simulator and iPhone 5.1 simulator).
In Xcode, select Organizer and in the Devices section, having the iPad plugged thru usb cable, select 'Use for development'.
This way allows you to run the app directly in the iPad form Xcode.
make sure you have added the device id in iOS provisioning profile you are using in the project

No provisioned iOS devices are available with a compatible iOS version

I'm trying to test my app on an iPhone 3G, however I'm getting this error:
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.
Note that:
The 3G has version 4.2.1 of iOS installed
The iOS deployment target is set to version 4.2
The device has valid development profiles installed
I'm using the latest Xcode 4
I'm at a loss. Can anyone help?
Tim
Solved this problem by closing and re-opening xcode.
Xcode... it's the new Windows.
Try clicking "Use for Development" on your device in the Xcode Organizer. I got this same error and that was the only way I fixed it.
I finally found a solution to this.
If anyone else has this problem then it might be useful to know that Xcode now creates applications for ARM7 by default.
To support the iPhone 3G and other arm6 devices, you need to specify arm6 and arm7 in in the Architectures list, and set the device requirements to only arm6 in the plist.
Another observation for anyone who still has the problem after adding armv6: I found that Xcode was still listing "iOS Device" in the Scheme dropdown rather than filling in the name of my 3G. When I clicked on the dropdown, I saw that there was another slot that listed my 3G. (Presumably the "iOS Device" slot only applies to my other development device, an iPhone 4). I'm curious whether this is intended functionality, so leave a comment if you develop with multiple phones and have seen this.
I have Xcode 5.0, and try to build for my iPad with iOS 5.1.1. And I get the message: 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.
The solution you can see in 4 step:
(1) Select project settings > project settings > Info. Choose deployment target instead of 7.0 i.e. 6.1.
(2) Select project settings > project settings > Build Settings. Change architecture . Don't compile for 64bit.
(3) Select project settings > target settings > General. Set Deployment Target according your device iOS version. Afterwards the device name IPad appear after IOS Device to run on.
(4) Finally I selected IPad.
Maybe you have set the minimum required iOS to a higher version than your 3G has. Could you try to change the iOS Deployment Target in the build settings to the version of your 3G?
I develop on multiple devices and multiple generations of each device. Look at the scheme. In the case of an iOS 5 device, at least, if it does not have the specific device name, but instead shows iOS Device, then eject the device in iTunes and unplug the device. Plug it back in and try to run/install. The device name should show up and the device should have a green dot in Organizer and everyone will be happy. I believe the 3G iPhone just shows up as iOS Device, and I'm not sure about the 3GS, but an iPhone 4 or 4S will show its device name. This is what I get for trying to continue supporting old iPod Touches and 3G phones with 4.2.1. At some time I'll just cut them off and move on.
Not sure, i understand your settings right. But, the rules are:
Base SDK Version >= Development device iOS version
Deployment Target version = Lowest iOS version to be supported.
Hence, i guess, setting base SDK version equal or above 4.2.1 might help.
i also get this case:
when i reset iphone, plugin to xcode again, xcode dont recognized iphone in schema, iphone still have full provision
I go to Organizer window, check device again and see that my iphone dont have green light and have button that ask to use this device for development. Click on button and all work well again
When I changed my app from iPhone to Universal, automatically xCode changed the Deployment Target from 4.3 to 6.1, my device had 6.0 so it wasn't recognized.
Changing the value back to 4.3 solved the problem.
When the first time , your new test iOS connected to you Mac, you can't see it in the pop-up menu. only "IOS Device"
You may try From menu: Window->Organizer->Devices ; then Choose you connected iPad and click “Use for development" ; So it appears .
In Organizer, I had to copy (drag and drop) the provisioning profile from the general 'Profiles' section to the device's 'Profile' section.
This can also happen because you've started to use your device on a computer that's never used it before. Once you've plugged in your device via USB, you'll need to choose to "trust" the device. You'll see a message like the following on the device itself:
Your settings and data will be accessible from this computer when
connected via USB or Wi-Fi
Choose "Trust" when prompted, and then XCode will be able to use the device.
More info here at Apple's site:
http://support.apple.com/kb/HT5868
"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."
I had this same problem when trying to build on my device.
Then I realised I was using an aftermarket lead.
Changed the lead to the original iPhone lead and... Hey Presto!
I solve this problem just change iOS Device of the following image to iPhone Retine ....,
I had a similar problem, with this error message: "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."
I solved it by simply going to the "jump bar" and changing it from "iOS device" to iPad 6.0 Simulator."

iPhone 4 updated to iOS5, phone is not listed as a device in XCode

I've just finished updating my iPhone 4 from iOS 4.2 to iOS 5. Once I re-opened my xcode project, I no longer see the phone as one of the devices to run on. What steps do I need to take to add the phone back to XCode?
Go to the organizer and, in the devices section, accept the iPhone for development.
You dont need to update the complete Xcode. Instead just download the iOS5 SDK and paste it in your "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/" directory. Restart the xcode once and you should be able to run your app on the device.