Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
420 views
in Technique[技术] by (71.8m points)

iphone - Deploy from Xcode 4.6.2 to iOS 7 (beta) device

I installed iOS 7 yesterday to test in my iPhone 5. The problem is that I can't deploy now any test applications from Xcode to my iPhone as it says it has an unsupported version. I can't (or don't want to) downgrade from iOS 7 to 6 and don't want (can't) upgrade Xcode to version 5 as submitting is not supported with Xcode 5 Beta.

So how do I deploy apps from Xcode 4.6.2 to iOS 7 Beta?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Well I don't know If this is of any help to anyone but me. But I have been able to use Xcode 4.6.2 to deploy to my iPhone 5 running iOS 7. I think it is due to a bug in the system but it doesn't matter to me. It works OK. Now to do this, I do as follows:

  1. Make sure you have the latest version of Xcode from the App Store. (I don't know why, but why not?)

  2. Download and Install Xcode 5.

  3. Close all instances of Xcode running in your system (4.6.2 and 5)

  4. Run Xcode 5. you will see it recognizes your device, you probably have to activate it as use it for development again.

  5. Run Xcode 4.6.2 simultaneously. You will see it recognizes your iPhone as in: make it valid target for development.

  6. close or do whatever you want with Xcode 5. From this point onwards You can keep using Xcode 4.6.2

I haven't turned my computer off or restarted it in a long time so I don't know if this is a fluke or what. But other people I work with have been able to do the same, so I expect it to work for you.

EDIT:

Better yet. Something I have found useful is building from Xcode 4.6.x to an iOS 7 device, actually makes the phone run it in iOS6 or before Mode which is the way all apps run at the moment. So my guess is that this would be what your app would look like in iOS 7 if deployed from the app store. Assuming you are targeting iOS 4+

Similarly, if you build the same app using Xcode 5, it tries to incorporate some iOS 7 appearance proxies by default and certainly the UI behaves differently. Granted I haven't played with Xcode 5 much, there is probably a toggle somewhere to turn this compatibility mode on and off.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...