I2 Localization IOS build issue on Unity Cloud

Hey @Inter-Illusion, looks like the forum on I2 Localization is broken, so I am searching for help here (can’t create an account). I am using Unity 2022.3.39f1 and the I2 Localization version is 2.8.22f5

I installed the I2 Localization asset and it works great. I send the build to Unity cloud and I have theses errors error CS0234: The type or namespace name 'iOS_I2Loc' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

The error points to this line using UnityEditor.iOS_I2Loc.Xcode; in the PostProcessBuild_IOS.cs file.

I moved the Editor file in the I2Localization folder under Asset > Editor. Did not work

I think its a problem with their DLL…? Any clues?

Hi,

The iOS_I2Loc is located on the DLL at
Assets\I2\Localization\Scripts\Editor\Unity XCode\UnityEditor.iOS_I2Loc.Xcode.dll

The error you are seeing could happen because of a few things:

  • If you added an AssemblyReference to Editor folder, you will also need to include the DLL in that assembly reference, otherwise, it will not be loaded correctly.

  • Select the DLL an check that it has the checkmark on Editor. It is like that by default, but just in case unity miss configured the meta file.

  • To be sure there is no other file problem, try removing I2 Localization, and without moving any ofits folders, build to iOS. Then, once you know all is ok, try relocating it and setting it for your project.

Hope that helps,
Frank

1 Like

Hi Frank!

Thank you for your answer. You also responded to my email, thank you so much for this!

As I told you already, the error was found and its not from i2 Localization. It was a very specific issue where I wanted to build through Unity Cloud but it created an error with the editor class.

If someone else has the same issue, they need to find a way to get the content of info.plist from a local build. Maybe there is a way by code, but it seems broken for now with Xcode 15 and Unity Cloud.

Thank you Frank!