是否可以在Xcode 6上安装iOS 7 SDK? [英] Is it possible to install iOS 7 SDK on Xcode 6?
问题描述
我安装了Xcode 6,但意识到我只能为iOS8开发。我知道这个beta开发工具包适用于iOS 8 beta版本的开发,但是我处于一个我没有时间为它开发但希望利用Xcode的一些新功能的位置。我正在为我目前的iOS 7应用程序开发。
I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps.
如何在xcode 6上安装iOS 7 SDK?
What can I do to get the iOS 7 SDK installed on xcode 6?
推荐答案
似乎如果将先前安装的Xcode中的相关SDK符号链接到Xcode 6 Beta目录,Xcode 6将能够使用它。假设您的计算机上仍有Xcode 5.1.1,请在终端中尝试以下操作:
Seems like if you symlink the relevant SDK from a previous installation of Xcode to the Xcode 6 Beta directory, Xcode 6 will be able to use it. Assuming you still have Xcode 5.1.1 on your machine, try the following in terminal:
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
这应该链接iOS 7 SDK for iPhone(不是sim),允许你选择iOS 7作为Xcode 6 Beta中的基础SDK。如果您想为模拟器执行此操作,请将 iPhoneOS.platform
替换为 iPhoneSimulator.platform
。
This should link the iOS 7 SDK for iPhone (not sim), allowing you to select iOS 7 as the Base SDK in Xcode 6 Beta. If you want to do this for the simulator, replace iPhoneOS.platform
with iPhoneSimulator.platform
.
注意:仅仅因为你拥有iOS 7 SDK并不意味着它会构建。我个人在使用Apple LLVM 6.0编译器时遇到麻烦,这显然与我正在尝试构建的一些东西不兼容。
NOTE: Just because you have the iOS 7 SDK now doesn't mean it'll build. I'm personally having trouble with the fact that Xcode 6 Beta is using the Apple LLVM 6.0 compiler, which apparently isn't compatible with some of the stuff I'm trying to build.
参考: https://stackoverflow.com/a/11424966/2383003
这篇关于是否可以在Xcode 6上安装iOS 7 SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!