可以在 Mavericks (OS X 10.9) 上使用 XCode 5 为 iOS 6 开发吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17197873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can one develop for iOS 6 using XCode 5 on Mavericks (OS X 10.9)?
提问by Martijn Courteaux
This question is out-dated. Mavericks is released and everything works fine with Xcode 5 and iOS 6 on an iPod 4th gen.
这个问题已经过时了。Mavericks 已发布,在 iPod 第 4 代上使用 Xcode 5 和 iOS 6 一切正常。
I'm thinking about upgrading my OS X to Mavericks, but I still want to keep developing my iOS app. I read on the internet that Xcode 4.6.3 is not compatible with Mavericks (OS X 10.9). So, this would force me to use the new Xcode 5. However, Xcode 5 comes along with the new iOS 7 SDK. The problem is that I own an iPod 4th gen, which isn't compatible with iOS 7.
我正在考虑将我的 OS X 升级到 Mavericks,但我仍然想继续开发我的 iOS 应用程序。我在互联网上看到 Xcode 4.6.3 与 Mavericks (OS X 10.9) 不兼容。因此,这将迫使我使用新的 Xcode 5。但是,Xcode 5 与新的 iOS 7 SDK 一起提供。问题是我拥有第 4 代 iPod,它与 iOS 7 不兼容。
So, has anyone tried this already? I think this should be possible, because at the WWDC 2013, Apple was so proud to tell that more than 90% of the costumers work with the latest iOS, which is currently still iOS 6. But with the release of iOS 7, they will be ruining that fact, because iOS 7 doesn't seem to be compatible with iPod 4th Gen. And a lot of people own such a device.
那么,有人已经尝试过了吗?我认为这应该是可能的,因为在 WWDC 2013 上,Apple 非常自豪地宣布 90% 以上的客户使用最新的 iOS,目前仍然是 iOS 6。但是随着 iOS 7 的发布,他们将正在破坏这个事实,因为 iOS 7 似乎与 iPod 4th Gen 不兼容。而且很多人都拥有这样的设备。
Did I miss something, or is Apple going to wrong way?
我错过了什么,还是苹果会走错路?
采纳答案by Undo
Yep.
是的。
I deploy onto my 4th gen touch from Xcode 5 on ML - not Mavericks, but should be the same.
我在 ML 上从 Xcode 5 部署到我的第 4 代触摸 - 不是小牛队,但应该是一样的。
Note, though, that you won't be able to submit to the App Store from Xcode 5 until just before iOS 7 is released.
但请注意,在 iOS 7 发布之前,您将无法从 Xcode 5 提交到 App Store。
Note, though, that you want to install Mavericks onto a seperate partition!!! Don't make it the only OS on your machine until it is released.
但是请注意,您要将 Mavericks 安装到单独的分区上!!!在它发布之前,不要让它成为你机器上唯一的操作系统。
回答by Sam Guichelaar
You can install Xcode 4 by temporary editing the System Version.
您可以通过临时编辑系统版本来安装 Xcode 4。
- go to /system/library/coreservices
- Find SystemVersion.plist and open it
- Change the two bottom numbers (10.9) to 10.8.4 and save
- Install Xcode 4
- Change those numbers back to 10.9 and save.
- 转到 /system/library/coreservices
- 找到 SystemVersion.plist 并打开它
- 将底部的两个数字(10.9)改为10.8.4并保存
- 安装 Xcode 4
- 将这些数字改回 10.9 并保存。
Done, You now have Xcode 4 on 10.9 :)
完成,您现在在 10.9 上拥有 Xcode 4 :)
Good Luck!
祝你好运!
回答by AvtarSingh Suchariya
I was also running the same problem when I updated to xcode 5 it removed older sdk. But I taken the copy of older SDK from another computer and the same you can download from following link.
当我更新到 xcode 5 时,我也遇到了同样的问题,它删除了旧的 sdk。但是我从另一台计算机上获取了旧 SDK 的副本,您可以从以下链接下载相同的副本。
http://www.4shared.com/zip/NlPgsxz6/iPhoneOS61sdk.html
(www.4shared.com test account [email protected]/test)
http://www.4shared.com/zip/NlPgsxz6/iPhoneOS61sdk.html(www.4shared.com
测试账号 [email protected]/test)
There are 2 ways to work with.
有 2 种方法可以使用。
1) Unzip and paste this folder to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs & restart the xcode.
1) 将此文件夹解压并粘贴到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs 并重新启动 xcode。
But this might again removed by Xcode if you update xcode.
但是,如果您更新 xcode,这可能会再次被 Xcode 删除。
2) Another way is Unzip and paste where you want and go to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs and create a symbolic link here, so that the SDK will remain same even if you update the Xcode.
2)另一种方法是解压缩并粘贴到您想要的位置,然后转到 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs 并在此处创建符号链接,以便 SDK 保持不变,即使你更新Xcode。
Another change I made, Build Setting > Architectures > standard (not 64) so list all the versions of Deployment Target
我做的另一个更改,构建设置 > 架构 > 标准(不是 64)所以列出部署目标的所有版本
No need to download the zip if you only wanted to change the deployment target.
如果您只想更改部署目标,则无需下载 zip。
Here are some screenshots.
这是一些屏幕截图。
回答by x2on
You can install Xcode4 and Xcode5 on the same Maverick system. Just download Xcode 4 from https://developer.apple.com/downloads/and drag Xcode.app to Desktop, rename it to Xcode4.app and move it to /Applications.
您可以在同一个 Maverick 系统上安装 Xcode4 和 Xcode5。只需从https://developer.apple.com/downloads/下载 Xcode 4并将 Xcode.app 拖到桌面,将其重命名为 Xcode4.app 并将其移动到 /Applications。
Done!
完毕!
回答by Manni
Correct, change the Deployment Target and set it to 6.1, even im also working on OS X 10.9 but want to use simulator 6.1.3 with Xcode 5. Im little confused that OS X 10.9 is going to support Simulator 6.1.3 with Xcode 5 or not. I want to make Simulator 7.0 look like iphone frame when it runs but nothing happening ...
正确,更改部署目标并将其设置为 6.1,即使我也在 OS X 10.9 上工作,但想在 Xcode 5 中使用模拟器 6.1.3。我对 OS X 10.9 将支持模拟器 6.1.3 和 Xcode 5 有点困惑或不。我想让 Simulator 7.0 在运行时看起来像 iphone 框架,但没有发生任何事情......