Pergunta

I have XCode version 4.6.3 and have just recently upgraded the OS on my iPhone 4 to iOS 7. When I try to run my code on my device I get the following error:

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.

In Organizer I'm seeing the following message:

The version of iOS on "My Phone's Name" is not supported by this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.

The here link just prompts me to login to Member Center and doesn't drop me off anywhere about the latest SDK.

My deployment target is iOS 6.1, I don't want to raise that to 7.0 as the majority of our users are on pre iOS 7. I am running OS X version 10.8.3, can I upgrade my SDK? Do I have to? How can I make it so my SDK is compatible with iOS 7 and pre iOS 7 devices?

Foi útil?

Solução

Developing with iOS7 requires that you upgrade to Xcode 5, which you can find free in the Mac App Store.

You'll still be able to keep your deployment target below 7.0 with Xcode 5.

If you don't have a dev iPhone with iOS 6.x you can go into Xcode > Preferences > Downloads to install the iOS6 simulator, command line tools, and any additional documentation.

Update 1

If you update your phone to iOS 7.1, you will also be required to update your version of Xcode to 5.1

Outras dicas

My iPad mini running iOS 7.04 would occasionally stop working with Xcode 4.6.3 as well. I found that starting up my app in Xcode 5 then closing down and re-opening in Xcode 4 would consistently fix this. I am not sure exactly why that works, I can only speculate that it resets some flags somewhere. But this does the trick.

Its preferable to use Xcode 5 as its an update by apple, but compiling with xcode 5 make UI Changes to the application. So, for that case if you dont want to change, I have the solution following solution to run your app with xcode 4.6.3 on iphone 4 with ios 7 update.

I was also facing this same problem but able to get it resolved by quit Xcode and iphone simulator once and then restart my xcode 4.6.3 and then connecting my ios device, made this problem resolved and now able to run my application on iphone 4 with ios 7 via xcode 4.6.3.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top