問題描述
我將 Xcode 升級到 4.5 版.現在所有的偏好都被重置為出廠設置——編輯器字體、顏色等——但這不是我最關心的問題.
I upgraded Xcode to version 4.5. Now all of the preferences are reset back to factory settings - editor fonts, colors, etc - but this is not my biggest concern.
看來我所針對的 iOS SDK 5.1 現在已經不存在了.在項目的構建設置中,我只能在最新 iOS (iOS 6.0)"和iOS 6.0"之間選擇 Base SDK.是否可以恢復以前安裝的 SDK?
It seems the iOS SDK 5.1 I was targeting is now gone. In project's build settings I can only choose Base SDK between "Latest iOS (iOS 6.0)" and "iOS 6.0". Is it possible to recover the previous installed SDKs?
推薦答案
當前的 Xcode 版本僅附帶最新的 iOS SDK(很遺憾,但我們無法更改).此外,Apple 建議始終使用最新的 SDK 來構建應用程序,并將部署目標"設置為您計劃支持的最低版本.
Current Xcode versions come only with the latest iOS SDK (which is a pity, but we cannot change it). Also Apple recommends to always use the latest SDK for building apps, and setting the "Deployment Target" to the minimum version that you plan to support.
您可以將 SDK(例如 iPhoneOS5.1.sdk)從舊版 Xcode 復制到
You can copy an SDK (e.g. iPhoneOS5.1.sdk) from an older Xcode to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
它會出現在構建設置中.但是您稍后可能會在使用此配置時遇到問題.
and it will appear in the build settings. But you might run into problems later with this configuration.
這篇關于升級到 Xcode 4.5 后,iOS 5 SDK 消失了的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!