Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

xcode4.2 - iPhone with iOS 6 and Xcode 4.2 issue

I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message:

The version of iOS on “xxx xxx” 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 iOS listed below, or update to the latest version of the iOS.

Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6?

See Question&Answers more detail:os

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

1 Answer

0 votes
by (71.8m points)

I followed the following steps, to resolve my issue by making Xcode to support iOS 6:

1.First download Xcode 4.5 .dmg file from Here (You would need developer account).

2.Then mount this image and use "Show Package Contents" from context menu.

3.Then copy the following folder

Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1 (10A403)

to your mac's following folder (This path may differ from mac to mac based on its version. On Snow Leopard you may find the Developer folder in Finder under PLACES section, and probably on Lion, you have to right click the Xcode.app and have to use Show Package Contents):

Developer/Platforms/iPhoneOS.platform/DeviceSupport

4.Similarly copy the iOS 6 SDK folder from following directory:

Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk

to your mac's following folder

Developer/Platforms/iPhoneOS.platform/Developer/SDKs

5.Also copy version.plist from Contents/Developer/Platforms/iPhoneOS.platform folder to your mac's Developer/Platforms/iPhoneOS.platform folder.

6.Re-start Xcode and re-connect the device(s).

Bingo !! now Xcode supports recognizes iOS6 device(s) and even I am able to run and debug my app (built for older SDKs) on my iPhone with iOS6 (I am not sure about iPhone 6.0 simulator though).

However, answer to How to restore iPhone to older version say 5.1 is still pending.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...