Xcode 5 to Xcode 4 Project Run

2019-03-28 10:57发布

问题:

I have a project that I started in iOS SDK 6. I downloaded Xcode 5 Beta with iOS 7 and ran it successfully.

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:

How do I fix this so I can compile and run from SDK 6 and Xcode 4?

回答1:

Actually this has a very simple answer.

Open the Storyboard file on Xcode 5, And then:

  1. Open file inspector
  2. On Interface Builder Documents section change Open with to Xcode 4.6 (if it's 5.x).
  3. Save, Close the project and open that with old 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).