如何使用Xcode 4.2使用ios 4.2 base sdk? [英] How do I use the ios 4.2 base sdk using Xcode 4.2?

查看:129
本文介绍了如何使用Xcode 4.2使用ios 4.2 base sdk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Xcode 4.2使用ios 4.2 base sdk?

How do I use the ios 4.2 base sdk using Xcode 4.2?

我拥有iPhone 4s和iTouch,其上有ios 4.2。将Xcode升级到4.2以便与我的iPhone 4s一起使用后,我再也无法使用Xcode和我的iTouch了。如何在ios5上设置Xcode以使用我的iTouch 4.2和我的iPhone?

I own a iPhone 4s and an iTouch which has has ios 4.2 on it. After upgrading Xcode to 4.2 to work with my iPhone 4s, I can't use Xcode with my iTouch anymore. How do I setup Xcode to work my iTouch on 4.2 and my iPhone on ios5?

此外,我尝试通过选择其他设置基本sdk,但列表中没有其他内容,我得到的是一个对话窗口,我可以手动输入。我需要在那里添加一个选项吗?

Also I tried setting the base sdk by selecting other but there is nothing else in the list, all I get is a dialog window that I can manually type in. Do I need to add an option there?

谢谢。

推荐答案

Xcode 4.2附带已安装iOS 4.2+的设备支持。您不想更改基本SDK,您需要更改部署目标。默认情况下,Xcode 4.2中新项目的部署目标设置为iOS 5.0。您可以在项目设置摘要屏幕或项目设置配置设置中更改它(在摘要屏幕上相当明显,只需在完整设置屏幕上搜索部署目标)。确保您使用的是完整设置,而不仅仅是基本设置。

Xcode 4.2 comes with device support for iOS 4.2+ already installed. You don't want to change the base SDK, you need to change the deployment target. By default, the deployment target for a new project in Xcode 4.2 is set to iOS 5.0. You can change that either on the project settings summary screen or in the project settings configuration settings (it's fairly obvious on the summary screen, and just search for 'deployment target' on the full settings screen). Make sure you are using the full settings, and not just basic settings.

此外,请确保您没有启用任何仅限iOS 5+的设置,例如Storyboards。如果启用了项目,你的项目将无法在iOS 4.2上加载。

Also, make sure you haven't enabled any iOS 5+ only settings like Storyboards. Your project won't load on iOS 4.2 if those are enabled.

编辑:根据你的评论,我想你可能正在使用1G / 2G iPod Touch?如果是这样,那就是新的默认架构。由于iOS 5仅在armv7设备上运行,因此新的默认项目仅将armv7作为有效架构。转到项目设置并将armv6添加到架构中,然后它应该再次在armv6设备上运行。

Based on your comment, I think you may be using a 1G/2G iPod Touch? If so, it's the new default architecture. Since iOS 5 only runs on armv7 devices, the new default project only has armv7 as a valid architecture. Go to the project settings and add armv6 to the architectures and it should then run on your armv6 device again.

这篇关于如何使用Xcode 4.2使用ios 4.2 base sdk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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