XCode no valid compiled storyboard at path

后端 未结 9 2302
迷失自我
迷失自我 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!

提交回复
热议问题