問題描述
我將 Xcode 升級(jí)到 4.5 版.現(xiàn)在所有的偏好都被重置為出廠設(shè)置——編輯器字體、顏色等——但這不是我最關(guān)心的問題.
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.
看來我所針對(duì)的 iOS SDK 5.1 現(xiàn)在已經(jīng)不存在了.在項(xiàng)目的構(gòu)建設(shè)置中,我只能在最新 iOS (iOS 6.0)"和iOS 6.0"之間選擇 Base SDK.是否可以恢復(fù)以前安裝的 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?
推薦答案
當(dāng)前的 Xcode 版本僅附帶最新的 iOS SDK(很遺憾,但我們無法更改).此外,Apple 建議始終使用最新的 SDK 來構(gòu)建應(yīng)用程序,并將部署目標(biāo)"設(shè)置為您計(jì)劃支持的最低版本.
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 復(fù)制到
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
它會(huì)出現(xiàn)在構(gòu)建設(shè)置中.但是您稍后可能會(huì)在使用此配置時(shí)遇到問題.
and it will appear in the build settings. But you might run into problems later with this configuration.
這篇關(guān)于升級(jí)到 Xcode 4.5 后,iOS 5 SDK 消失了的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!