How to disable Xcode 5 automatically upgrade xibs to iOS7 appearance

前端 未结 4 1088
梦如初夏
梦如初夏 2021-02-03 10:32

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

相关标签:
4条回答
  • 2021-02-03 10:46

    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.

    0 讨论(0)
  • 2021-02-03 10:58

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

    defaults write com.apple.dt.xcode IBAlwaysUpgradeAutolayoutDocuments -boolean false
    
    0 讨论(0)
  • 2021-02-03 11:00

    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
    
    0 讨论(0)
  • 2021-02-03 11:08

    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
    
    0 讨论(0)
提交回复
热议问题