XCode 4.2 MainStoryBoard Not Found

后端 未结 5 1758
梦毁少年i
梦毁少年i 2020-12-09 13:00

When I make changes to the MainStoryboard.storyboard none of these changes make it to my iOS device even though it builds. I tried deleting all data for the application from

5条回答
  •  囚心锁ツ
    2020-12-09 13:28

    I've seen this happen a handful of times with the files with my students, and today I had it happen to me as well. What seems to fix it for me:

    1. Right-click on your MainStoryboard.storyboard in the Project Navigator.
    2. Select Delete and click Remove References Only.
    3. Right click on InfoPlist.strings and select "Show In Finder". (This is just my lazy way to open the folder containing the storyboard in finder.)
    4. Drag the MainStoryboard.storyboard from Finder back into the project.

    My suspicion is that there is a bug somewhere triggered by adding files to the project or certain edits to the storyboard. It causes the localized files to not be copied into the bundle (I think). Removing the storyboard and re-adding it to the project seems to fix the hiccup.

提交回复
热议问题