iOS 7 no longer working with XCode 4.6.3

一个人想着一个人 提交于 2019-12-07 05:27:48

问题


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?


回答1:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/19139215/ios-7-no-longer-working-with-xcode-4-6-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!