Just installed Xcode 11.0 beta (11M336w), and once running an empty app getting this console error:
[general] CFLocaleCopyCurrent() failed to look up current locale via 'AppleLocale' and 'AppleLanguages' in user preferences; falling back to locale identifier 'en_US' as the default. Consider checking Console for sandbox violations from this process for reading from preferences, or enabling CoreFoundation debug logging for more information. This will only be logged once.
I'm pretty sure it's irrelevant, but worth mentioning that the empty app uses SwiftUI
When I got this error with SwiftUI
it was because I forgot to set my view's EnvironmentObject
with .environmentObject()
. The stated error is completely irrelevant, but making that change fixed it for me. Still a bug with Xcode 11 showing the wrong error, but potentially means there's legitimately an error in your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With