Storyboard doesn't apply changes after using Base Internationalization

前端 未结 1 1316
时光说笑
时光说笑 2021-01-24 22:35

I\'m localizing my app. I have already accomplished Use Base Internationalization and added 1 set language of files: MainStoryboard.strings (French) & In

相关标签:
1条回答
  • 2021-01-24 23:18

    Xcode will compile your storyboard to something like MainStoryboard.storyboardc and store the storyboardc file in

    <Your app folder>/Build/Products/Debug-iphonesimulator/<Your app name>.app/Base.lproj/MainStoryboard.storyboardc
    

    I believe there is a bug in the mechanism of Base Internationalization, which makes Xcode just use the old storyboardc rather than compile a new one. Thus, your changes to storyboard will not appear after using Base Internationalization.

    To solve it, just remove the Build folder.

     rm -rf Build/
    

    Xcode will compile storyboard again after deleting the folder.

    If it still doesn't work, you may need to reset your simulator.

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