Error in Xcode console

Lately I am getting this error.

GenerativeModelsAvailability.Parameters: Initialized with invalid language code: en-GB. Expected to receive two-letter ISO 639 code. e.g. 'zh' or 'en'. Falling back to: en

Does anyone know what this is and how it can be resolved. The error does not crash the app

Does the error appear in the console, or is it being thrown when you attempt to call respond(to:)?

I experience the same issue. First time I saw this error was when I installed XCode 26.0.1 I suspect this is a bug in Xcode as the error seems to relate to something in different framework.

Hi all!

If you see this issue, first verify that your Mac and Xcode are on the exact same version, e.g, 26.2. Some of these kind of strange errors can come up due to version mis-match.

If that does not resolve the issue, please file a Feedback Assistant report.

Thanks!

Error in Xcode console
 
 
Q