Base.lproj / MainMenu.xib is not available at compilation for purposes before Mac OS X 10.8

I am very new to Cocoa.
I just created a Cocoa project in Xcode 5 . I changed the Deployment Goal from 10.8 to 10.6. Now I get this warning:

path-to-my-project / Base.lproj / MainMenu.xib is not available if compiling for purposes before Mac OS X 10.8

Is this normal behavior? What should I do?

+6
source share
3 answers

Your project uses basic internationalization, which makes it easy to translate your application into other spoken languages. Basic internationalization is supported on Mac OS X 10.8 and later, so you get a warning when you change the deployment target to 10.6.

There are two ways to get rid of a warning. First, you can set a deployment target for 10.8. Secondly, you can turn off basic internationalization. Select a project from the project navigator to open the project editor. Select the project on the left side of the project editor. Uncheck the Use basic internationalization box.

enter image description here

+18
source

For those who think that disabling basic localization removes .xib in a new project, another option is to select MainMenu.xib, select "File Inspector" on the right (looks like the "new file" icon). Go to Localization and uncheck Base.

+2
source

There is another way:

  • Remove links from all files in Base.lproj from the project
  • Move files from Base.lproj to.
  • Add these files again to the project.
0
source

Source: https://habr.com/ru/post/954255/


All Articles