Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open Xcode project in Xcode 4.5 after opening it in Xcode 5

I'm working with another iOS programmer together on a project. Other programmer installed Xcode 5 on his computer and opened the project. After he sent me the project, I can't open it in my older Xcode 4.5. First I got the following error: The document "MainStoryboard.storyboard" could not be opened. Could not read archive. Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility.

Then I opened the storyboard in source code and changed the version from 3.0 to 2.0 (and later to 1.0). After that, I tried to open the storyboard in Interface Builder and got the following error:

The document "MainStoryboard.storyboard" could not be opened. Failed to unarchive element named "tableViewCellContentView". Edit this document with a newer version of Xcode.

Do you have any idea or suggestion?

enter image description here

like image 432
farhad rubel Avatar asked Jan 13 '23 07:01

farhad rubel


2 Answers

This works for me with XCode 4.5.1:

Open the storyboard file as source code, change the version from 3.0 to 2.0 and replace all occurrences of 'tableViewCellContentView' with 'view'

like image 170
Sal Avatar answered Jan 22 '23 04:01

Sal


You can open the project in newer version of XCode and then downgrade the Storyboard to run in XCode 4.5. I have tried this and it has worked for me. Steps are being outlined here for clarity :

  1. Open the storyboard
  2. Open Identity and Type tag in your right view of Xcode.
  3. Set the value of Development in Document Versioning to "Xcode 4.2" (my default value is "Default Version (Xcode 4.1)".
  4. Change the value of Deployment from Project SDK Version (iOS 5.0) to iOS 5.0, then back to Project SDK Version (iOS 5.0)
like image 37
userx Avatar answered Jan 22 '23 05:01

userx