How to disable Xcode warning "Enable Base Internationalization"?
Asked Answered
B

3

27

This warning started to appear on Xcode 10 Beta 6.

I perfectly understand its meaning, yet I wish to disable it. Any way to do that?

Brittanybritte answered 30/8, 2018 at 17:58 Comment(0)
O
12

I managed to get rid of the warning by turning off "Missing Localizability" in the build settings.

enter image description here

This prevents the warning from reappearing if you turn off base internationalization.

To remove the initial warning i had to restart xcode with base internationalization turned on. Once the warning is gone you can disable base internationalization again. And be happy because there is one less warning in your project. (or very happy if there are none)

Oxeyed answered 27/3, 2019 at 14:3 Comment(2)
You've made my day. Very very happy with no warnings :)Emptyheaded
As you wrote, I needed to restart Xcode after turning off the stated switches in "build" (under project target). Not at all obvious - thanks!Sherrill
F
8

The warning will go away if you edit your project.pbxproj (inside of your xcodeproj) with an editor and add Base to the knownRegions key.

Not sure if it has any side effects though.

knownRegions = (
    en,
    nl,
    Base,
);
Febrific answered 18/10, 2018 at 20:1 Comment(3)
This is exactly the same as clicking "Enable" from the prompt opening from the Xcode warning.Pedersen
@Cœur When you click on the warning you get the "Choose files and reference language" dialog. If you don't have any resource files you can still click on Finish, but nothing will happen. The warning will be gone until you close and re-open Xcode. My only option in this case was to manually edit the pbxproj file.Febrific
oh, didn't know about the scenario without any resource files. I gave you my upvote.Pedersen
T
-7

You need to open all XIB or storyboard. Check localization table. If it is a space, you need to choose a localization language.

Testudinal answered 2/10, 2018 at 1:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.