简体   繁体   English

如何将iPhone项目从XCode 3.1.3-SDK 3.0导入到XCode 3.2.3-SDK 4.0.1

[英]How to import an iPhone Project from XCode 3.1.3 - SDK 3.0 to XCode 3.2.3 - SDK 4.0.1

I have an annoying situation here: I have updated my mac from Tiger to Snow Leopard, and my XCode has also been upgraded from from XCode 3.1.3 - SDK 3.0 to XCode 3.2.3 - SDK 4.0.1. 我这里的情况很烦人:我的Mac已从Tiger升级到Snow Leopard,并且我的XCode也已从XCode 3.1.3-SDK 3.0升级到XCode 3.2.3-SDK 4.0.1。 The problem is: I can't run my projects anymore. 问题是:我不能再运行我的项目。 The SDK 3.0 can not be found (and I have already read in Internet that there is no SDK 3.0 available to XCode 3.2) ans ALL the frameworks I had in my Project can also be not recognized. 找不到SDK 3.0(并且我已经在Internet上阅读到XCode 3.2没有可用的SDK 3.0)并且我在项目中拥有的所有框架也都无法识别。 How can I please fix this? 我该如何解决? I want to be able to run my project with the new XCode and with the new SDK. 我希望能够使用新的XCode和新的SDK运行我的项目。

I would be very, very glad to hear any suggestions. 听到任何建议,我将非常非常高兴。 Thanks a lot in advance for answering. 提前非常感谢您的回答。

You need to set the base SDK of your project to 4.0 and the deployment target to 3.0. 您需要将项目的基本SDK设置为4.0,并将部署目标设置为3.0。 This will allow you to still deploy on 3.0 devices. 这将使您仍然可以在3.0设备上进行部署。 In XCode, highlight your project and hit get info. 在XCode中,突出显示您的项目并点击获取信息。 Then click on the build tab. 然后单击构建选项卡。 It should say "Base SDK" near the top. 顶部附近应显示“ Base SDK”。 Select iPhone Device 4.0 from the list. 从列表中选择iPhone Device 4.0。 Then in the search bar type "deploy". 然后在搜索栏中输入“ deploy”。 Near the bottom you should see iPhone OS Deployment Target. 在底部附近,您应该会看到iPhone OS部署目标。 Select iPhone OS 3.0 from this list. 从此列表中选择iPhone OS 3.0。 Let me know if you have any questions. 如果您有任何疑问,请告诉我。

Is this the same as this question ? 这和这个问题一样吗?

With iOS4, Apple has changed the way that they do the SDK. 借助iOS4,Apple改变了他们制作SDK的方式。 You will compile ALL programs against the iOS4 or 3.2 (iPad) SDK, but you set the Deployment Target in your project settings to choose the minimum OS version you want to support. 您将针对iOS4或3.2(iPad)SDK编译所有程序,但是您在项目设置中设置了“部署目标”以选择要支持的最低OS版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM