Base.lproj/MainMenu.xib is not available when compiling for targets before Mac OS X 10.8

前端 未结 3 1742
长发绾君心
长发绾君心 2021-01-02 19:13

I\'m very new to Cocoa development.
I\'ve just created Cocoa project in Xcode 5. I changed Deployment Target from 10.8 to 10.6. Now I g

相关标签:
3条回答
  • 2021-01-02 19:33

    Your project is using base internationalization, which makes translating your app to other spoken languages easier. Base internationalization is supported on Mac OS X 10.8 and later, which is why you are getting the warning when you changed the deployment target to 10.6.

    There are two ways to get rid of the warning. First, you can set the deployment target to 10.8. Second, you can turn off base internationalization. Select your project from the project navigator to open the project editor. Select your project from the left side of the project editor. Deselect the Use Base Internationalization checkbox.

    enter image description here

    0 讨论(0)
  • 2021-01-02 19:39

    For those who find that turning off base localization deletes the .xib in a new project, another option is to select MainMenu.xib, choose the ‘File Inspector’ on the right (looks like a 'new file' icon). Go down to Localization and uncheck Base.

    0 讨论(0)
  • 2021-01-02 19:47

    There is another way:

    • Remove references from all files in Base.lproj from the project
    • Move files from Base.lproj to ..
    • Add those files again in the project.
    0 讨论(0)
提交回复
热议问题