Storyboards are missing in “copy bundle resources”

前端 未结 2 1063
一个人的身影
一个人的身影 2021-02-05 06:18

I\'m using base internationalization to internationalize my app. Once I used it, my storyboards became red in \"copy bundle resources\" (they were normal before I used base inte

相关标签:
2条回答
  • 2021-02-05 07:04

    Make sure you have all the "Localizable strings" checkboxes ticked in the file inspector when the MainStoryboard file is selected.

    I had a problem that looks similar. I transitioned my project's main storyboard to use base internationalization. When selecting the MainStoryboard file, in the file inspector, I saw a new entry called Base, which was using the English localization. So, thinking that "Base" already accounted for the english part I unchecked the English "Localizable Strings" entry in the file inspector. Apparently that was the origin of my problems. After that, the MainStoryboard file would show up in red in the "Copy bundle resources" list. Checking again the English localizable strings entry fixed the problem.

    0 讨论(0)
  • 2021-02-05 07:13

    Unchecking "Localizable Strings" may need also first copy your storyboard elsewhere, then do the uncheck and then import your storyboards again in your xcode project.

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