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

前端 未结 18 1031
礼貌的吻别
礼貌的吻别 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:02

    I simple changed deployment target to 4.0 and Development to 4.3 from MainStroyboard. I clean the project; and restarted the mac, :) i know it sounds funny but restarting xcode didn't helped. maybe there is a cache in memory...

    Then i built the project ; it was ok!

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

    After trying all the suggestions above, without success, I got my code to compile doing the following.

    Edit -> Refactor -> Convert to Objective-C ARC
    
    0 讨论(0)
  • 2020-12-02 10:04

    the solution is simple, right click your storyboard file, and show in finder then select the folder where the file is (this would probably be in the en.lproj folder) right click on the MainStoryboard.storyboard file causing the problem and open with text edit find the line that reads or something like this:

    <development version="4300" defaultVersion="4200" identifier="xcode"/>
    

    and change it to something like this:

    <development defaultVersion="4300" identifier="xcode"/>
    

    save the file and build. Et voila...

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

    This seems to be a bug in the latest XCode that I've also run into too, did try the OP's solution of changing debugger and that had no effect.

    It cropped up for me since I tried storyboard with 4.3 and then tried to change back.

    My solution was to close XCode, open it again and clean. Then I compiled and it worked fine.

    Hope this helps others.

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

    Here is yet another random, voodoo, disconnect your iPhone if it is connected.

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

    Ok, I tried everything above and problem still occurred. So I just remove storyboards (as reference not move to trash). then build successfully; after that I added them again; Build, And finally worked.

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