如何使用Xcode 4.3.2打开具有objectVersion 38的Xcode项目 [英] How to open Xcode project which has objectVersion 38 with Xcode 4.3.2

查看:314
本文介绍了如何使用Xcode 4.3.2打开具有objectVersion 38的Xcode项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Xcode项目MyProject.pbproj,其中项目文件project.pbxproj具有属性objectVersion = 38;

I have a Xcode project MyProject.pbproj in which a project file project.pbxproj has the property objectVersion = 38;

当我尝试使用Xcode打开它时,我收到消息

When I try to open it with Xcode, I get the message

无法以不兼容的项目版本加载项目"...".

Failed to load project at '...', incompatible project version.

我的Xcode版本是4.3.2

The version of my Xcode is 4.3.2

我是Xcode和完整Mac OS环境的新手,我不知道该怎么办.

I'm new to the Xcode and complete Mac OS environment and I do not know what to do.

如果我的项目对于我的Xcode版本而言太旧了,是否可以将我的项目移植到更高版本的Xcode?

If my project is too old for my version of Xcode, is there any way to port my project to higher version of Xcode?

推荐答案

我能够通过执行以下操作来解决类似的问题:

I was able to solve a similar problem by doing this:

  1. 在XCode中创建一个新项目.

  1. Create a new project in XCode.

将源文件(.m和.h)从旧项目复制到新项目.

Copy the source files (.m and .h) from the old project to the new project.

使用文件">添加文件"将这些源文件添加到项目中.

Use File > Add Files to add those source files to the project.

添加一些由于某些原因而似乎丢失的"#import"行.

Add some "#import" lines that seemed to be missing for some reason.

将旧项目的.NIB文件转换为.XIB文件:

Convert the old project's .NIB file to a .XIB file:

a.在XCode中打开.NIB文件.

a. Open the .NIB file in XCode.

b.选择文件">复制".

b. Choose File > Duplicate.

c.选择文件>保存".选择.XIB格式并覆盖新项目的.XIB文件.

c. Choose File > Save. Choose .XIB format and overwrite the .XIB file of your new project.

希望这会有所帮助.我很想知道是否有更好的方法.

Hope this helps. I'd love to know if there's a better way.

祝你好运,
菲利普.

Good luck,
Philip.

这篇关于如何使用Xcode 4.3.2打开具有objectVersion 38的Xcode项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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