简体   繁体   English

Xcode 5到Xcode 4项目运行

[英]Xcode 5 to Xcode 4 Project Run

I have a project that I started in iOS SDK 6. I downloaded Xcode 5 Beta with iOS 7 and ran it successfully. 我有一个项目是我在iOS SDK 6中开始的。我使用iOS 7下载了Xcode 5 Beta并成功运行了它。

However, to submit the project, I need to go back to SDK 6 and Xcode 4. When I do, I get following message for every XIB file I have in the project: 但是,要提交项目,我需要回到SDK 6和Xcode 4.当我这样做时,我会收到项目中每个XIB文件的以下消息:

在此输入图像描述

How do I fix this so I can compile and run from SDK 6 and Xcode 4? 我如何解决这个问题,以便我可以从SDK 6和Xcode 4编译和运行?

Actually this has a very simple answer. 实际上这有一个非常简单的答案。

Open the Storyboard file on Xcode 5, And then: 在Xcode 5上打开Storyboard文件,然后:

  1. Open file inspector 打开文件检查器
  2. On Interface Builder Documents section change Open with to Xcode 4.6 (if it's 5.x). Interface Builder Documents部分,将Open with更改为Xcode 4.6(如果它是5.x)。
  3. Save, Close the project and open that with old Xcode. 保存,关闭项目并使用旧的Xcode打开它。

It should work now. 它现在应该工作。

This is same method like on earlier releases so I assume that's ok for NDA case (you can do the same thing on Xcode 4.6 to work with older version). 这与早期版本的方法相同,所以我认为NDA情况没问题(你可以在Xcode 4.6上做同样的事情来使用旧版本)。

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

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