iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior

前端 未结 18 1032
礼貌的吻别
礼貌的吻别 2020-12-02 09:33

I\'ve built a small app using storyboards and it ran great. Just before final testing I decided to try it out to see if it runs on iOS 4.3. I clicked on the gray 5.0 in the

相关标签:
18条回答
  • 2020-12-02 10:19

    Had similar issue. XCode would build and run other projects fine but couldn't get rid of the error on project I had changed, not even backups from server. Tried all the above solutions but nada. Here is what worked.

    1. Uninstall XCode.

    2. Delete user/library/developer/XCode folder.

    3. Reinstall XCode (maybe you should start this before searching for the folder, download took me 20 minutes).

    4. Start up, clean and build.

    Worked for me. Saved me some time. Sometimes when the scalpel doesn't work it's time for the hatchet. Now I get to pick a new font to code in (this will clear your preferences)!

    0 讨论(0)
  • 2020-12-02 10:20

    After trying all the answers in here (removing the Storyboard reference, quitting Xcode, cleaning, changing debugger, etc.), none worked (with Xcode 4.5).

    The only way I got it to rebuild (and it was a total guess) was to open the Storyboard file in a text editor and delete the following line:

    <deployment version="1280" identifier="iOS"/>
    

    It should be near the top of the file, in the <dependencies> section. After that, the project was built successfully and Xcode even re-added that line to the file, but, it still builds...

    Go figure...! Hopefully it can help someone!

    0 讨论(0)
  • 2020-12-02 10:20

    Here is yet another random, voodoo, flail that seemed to workaround the bug just now. (after other techniques here had not helped) I renamed the storyboard file (and the entry for it in the info.plist file). Haven't tried the "drag to/from desktop" ritual yet.

    Tonight, I have lost like 45 minutes to this issue. grrrrr. Ok I feel better now.

    0 讨论(0)
  • 2020-12-02 10:22

    I also got this problem and finally I solved this by following procedure:

    1. Open XXXXXX.storyboard
    2. Open Identity and Type tab 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)

    Rebuild the project and the error should be resolved.

    0 讨论(0)
  • 2020-12-02 10:23
    rm -rf $HOME/Library/Application Support/Developer/Shared/Xcode
    rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.*
    rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState
    rm -rf $HOME/Library/Developer/Xcode
    

    seems to help with Xcode 4.3.2

    0 讨论(0)
  • 2020-12-02 10:24

    At last, an elegant workaround that seems to do the trick for me! (I sure hope it works for everyone else. This one's stubborn.)

    Once your settings are back safely in iOS 5-land, try Cmd-Option-Shift K (aka "Clean Build Folder..." from the menu - hold down Option to see it), then build.

    0 讨论(0)
提交回复
热议问题