$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs $ ls -l
果然剩iOS 7.0了,其實是沒太大的差別,以前也一直都這樣,不過這次改變實在太大,加上舊專案都還在用,還是最好有舊的SDK比較放心,查了下資料,可以去下載以前舊的xcode版本或找出舊版xcode,好在我都有備份,將dmg打開,開Terminator,基本上都是放在/Volumes,目錄名稱叫Xcode
$ cd /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ $ ls
我這邊是看到iPhoneOS6.1.sdk,所以就
$ mkdir /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk $ cp -ri iPhoneOS6.1.sdk/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
其他版本也一樣的做法。
How To Support Old iOS SDK’s in Xcode 5文中提到
Update: @rekle points out that it’s possible to get older versions of Xcode from the Downloads area of the Apple Dev Center. Even once Xcode 5 hits the App Store, it should still be possible to get an old SDK version.有申請開發帳號的人,可以點擊get older versions of Xcode,登入後找以前的版本下載
PS. 建議是在安裝前,先將這目錄下的原SDK都先備份起來,若有同名的,當然是以新的為主
參考網址:
iOS 5 SDK is gone after upgrade to Xcode 4.5
How To Support Old iOS SDK’s in Xcode 5
沒有留言:
張貼留言