XCode no valid compiled storyboard at path

后端 未结 9 2253
迷失自我
迷失自我 2020-12-07 01:29

I\'ve got a universal XCode Project (ObjC) for iPad and iPhone with a subproject that contains a storyboard. The subproject is a static library that has been added to the ma

相关标签:
9条回答
  • 2020-12-07 02:03

    I'm sorry for my previous comments.
    I don't know why it didn't work, but currently I fixed that problem with following steps:

    1. Go to Project Target -> Info and then delete KeyValue object for key Main storyboard file base name and Main storyboard file base name (iPad).
    2. To ensure that it's completely removed, go to Info.plist file and verify the KeyValue objects aren't exist there. If they are, then also delete from there.
    3. Remove references to Storyboards from Xcode project.
    4. Add Storyboards back to the project by right-click on the project in Xcode -> Add files to project_name, tick the Copy items if needed, Create groups and project target options.
    5. Set Storyboards names both for iPhone and iPad in Project Target –> Info, by adding previously removed KeyValue objects.

    From now Storyboards work as previously!

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

    I was trying to fix this problem for 2 days with no hope till i found that it also did not open the sqlite DB file also and after that everything is corrupted after this DB failure. that was my case. And all of that was a memory issue even if ARC set arrays or dictionaries after finishing to nil;

    0 讨论(0)
  • 2020-12-07 02:07

    I had this problem due to changes in the Storyboard color of Status Bar Style and not changed in project settings

    0 讨论(0)
  • 2020-12-07 02:12

    I was using a Storyboard from a custom Cocoapod and it kept crashing with

    There doesn't seem to be a "valid compiled storyboard" at path ...

    In the affected storyboard, under Interface Builder Document I switched the "Builds for" value from "iOS 7.0 or later" to "Project Deployment Target" (which was 9.0), this did the trick for me.

    0 讨论(0)
  • 2020-12-07 02:16

    Just ran into this, after switching a project from a Universal target to iPad only, and the deployment target from iOS 9.0 to iOS 7.1.

    The solution was to disable 'Use Size Classes' on the storyboard, and only keep the sizes for iPad.

    To get to this checkbox, open the storyboard in the project navigator, then select then show the File Inspector (first icon) and scroll down to Interface Builder Document heading.

    0 讨论(0)
  • 2020-12-07 02:18

    In our case, we were running a shell script that executed one of XCode's commandline tools, ibtool,

    ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target 6.0 --output-format human-readable-text --compile ./Build/Release-iphonesimulator/TestApp.app/TestStoryboard.storyboardc ./Resources/TestStoryboard.storyboard --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk
    

    and while it seemed to run without errors, it actually produced an empty storyboardc directory. Upgrading the minimum deployment target to 8.0 produced a properly constructed storyboardc, with an Info.plist file inside. When IBTool fails / produces an empty directory, I definitely think it should actually fail, and cease compilation, because otherwise everything looks like it's properly set up and correct, it actually isn't.

    So yeah, solution for us was upgrading the minimum deployment target of our app.

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