Storyboards are missing in “copy bundle resources”

前端 未结 2 1065
一个人的身影
一个人的身影 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.

提交回复
热议问题