简体   繁体   English

Xcode 4:我的 iPhone 项目已成为 Mac OS 项目.. 我无法更改

[英]Xcode 4: My iPhone projects have become Mac OS projects.. and I can't change this

I have two iOS projects that under Xcode 3 built properly and these iPhone been on sale in the app store for some time.我有两个 iOS 项目,在 Xcode 3 下正确构建,这些 iPhone 在应用商店中销售了一段时间。 After upgrading to Xcode 4, Xcode now thinks these are Mac OS projects!升级到 Xcode 4 后,Xcode 现在认为这些是 Mac OS 项目!

When I select Project Settings > Info, it actually says at the top "Mac OS Deployment Target" with a drop down allowing me to select 10.4, 10.5 or 10.6.当我 select 项目设置 > 信息时,它实际上在顶部显示“Mac OS 部署目标”,下拉菜单允许我选择 select 10.4、10.5 或 10.6。 These are not nor ever have been Mac OS projects.这些不是也从来不是 Mac OS 项目。

In my build settings, Xcode allows me to select 32 bit or 64 bit Intel architecture.在我的构建设置中,Xcode 允许我使用 select 32 位或 64 位英特尔架构。 not armv6 or armv7.不是 armv6 或 armv7。

You need to change your build settings.您需要更改构建设置。 Fortunately, this is really easy to do.幸运的是,这真的很容易做到。

Start by clicking on your project's name in the Project Navigator.首先在 Project Navigator 中单击您的项目名称。

Now, click on your Project Name as it comes up in the list.现在,单击列表中出现的项目名称。 (You may need to do this for your build as well.) (您可能也需要为您的构建执行此操作。)

Next, click on Build Settings.接下来,单击构建设置。 Finally, you should be able to change your Base SDK to the appropriate one.最后,您应该能够将您的 Base SDK 更改为适当的。

Note that you might need to repeat steps 3 and 4 after selecting your Target in the screen shown below.请注意,在下面显示的屏幕中选择目标后,您可能需要重复步骤 3 和 4。

在此处输入图像描述

Have you restarted Xcode since the upgrade?升级后是否重启过 Xcode? Often times Xcode 4 seems to need to be restarted after SDK changes.很多时候 Xcode 4 似乎需要在 SDK 更改后重新启动。

I didn't face any issues opening the projects in Xcode 4 which are built in Xcode 3. However there can be wired issue with the Xcode 4 you are using.在 Xcode 3 中打开 Xcode 4 中的项目时,我没有遇到任何问题。但是使用 Xcode 可能存在接线问题。4 Try resetting the architecture to armv6 or armv7 and base SDK to latest iOS SDK using the build settings.尝试使用构建设置将架构重置为 armv6 或 armv7 并将 SDK 基本设置为最新的 iOS SDK。 Also set the deployment target properly.还要正确设置部署目标。 This should allow you to run the application in Xcode 4.这应该允许您在 Xcode 4 中运行应用程序。

Also, try uninstalling the xcode and install Xcode 4 again.另外,尝试卸载 xcode 并再次安装 Xcode 4。 This should fix the wired issue you have with your xcode 4.这应该可以解决 xcode 4 的有线问题。

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

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