12

If you open an Xcode 4.x project at Xcode 5 and then open a xib at Interface Builder, you will get an alert:

XCode ask to upgrade pre iOS7 xibs to iOS7 only

NOTE: I only have the issues with the forced iOS7 appearance, auto layout is still turned off for me.

And then i accidentally clicked "Alway Upgrade" so Xcode automatically upgrades all my xibs to Xcode 5 and iOS7 prior. But i use Xcode 4.x parallel and it's very annoying to switching back all the xibs when i accidentally open them in Xcode 5.

Before opened in XCode 5 interface builder:

Interface Builder Document with opens in XCode 4.6 and View as 6.1 and earlier

After opened in XCode 5 interface builder:

Interface Builder Document with opens in XCode 5.0 and View as 7.0 and later

I searched in Xcode and on Google to get the way to turn this "feature" off, but i still have no luck about it.

3
  • I just reset changes of .xib on GIT repository, but I also need more workaround about that Commented Jul 19, 2013 at 14:34
  • I do the same, but every time i click on a xib the whole procedure start over because of "Always Upgrade" option... really annoying i can't find that option to turn off Commented Jul 19, 2013 at 15:12
  • 4
    Any solution? im in the same boat here. Commented Sep 13, 2013 at 11:34

4 Answers 4

18

In the File Inspector for the xib (cmd-opt-1), you can change the "Opens in" popup to say "Xcode 4.6". This will revert the document format to one that is compatible with Xcode 4.6, but it also means you will not be able to take advantage of some of the new capabilities in Xcode with regards to xibs.


If you want to "reset" the "Always upgrade" choice you made, you can do that by resetting that particular user default using Terminal:

defaults write com.apple.dt.xcode IBAlwaysUpgradeAutolayoutDocuments -bool false 
Sign up to request clarification or add additional context in comments.

6 Comments

I already know that "But i use Xcode 4.x parallel and it's very annoying to switching back all the xibs when i accidentally open them in Xcode 5."
Stil no luck with that line, the problem is not about the auto layout, check my edit please.
@TussLászló changing this setting would probably require quitting Xcode before running the command.
The command doesn't work here either, also after closing Xcode. Might there be a flag in the project file?
No more headache after changing the "Opens in" option to Xcode 4.6, thank you.
|
2

I have tried the above solutions, but as other users pointed out, didn't seem to work well... Strangely, after downloading Cocktail for Mac, and cleaning up broken preference as well as caches and other junk (which I did just to maintain my aging Mac) the "Always Upgrade" mistake was finally fixed!!

I haven't bought cocktail, honestly, you can use it for free for ten launches or something. So, you can go ahead and get your Mac cleaned up and fix that burden along the way.

Comments

1

I modified the Dave DeLong's command to reset the "Always upgrade". Try it.

defaults write com.apple.dt.xcode IBAlwaysUpgradeAutolayoutDocuments -boolean false 

1 Comment

Same issue, please check my added note.
-1

I didn't have luck with either of these commands, but this one worked for me...

defaults write com.apple.dt.xcode IBAlwaysUpgradeAutolayoutDocuments -int 0 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.