是否可以在 Xcode 6 上安装 iOS 7 SDK? [英] Is it possible to install iOS 7 SDK on Xcode 6?

查看:19
本文介绍了是否可以在 Xcode 6 上安装 iOS 7 SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 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

这应该链接适用于 iPhone 的 iOS 7 SDK(不是 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 并不意味着它会构建.我个人对 Xcode 6 Beta 使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆