stefalda / ReactNativeLocalization

Class to localize the ReactNative interface
MIT License
898 stars 123 forks source link

fatal error: 'UIKit/UIDevice.h' file not found #import <UIKit/UIDevice.h> #193

Open sangeethkumarv opened 3 years ago

sangeethkumarv commented 3 years ago

When updating to the latest version of RN, the iOS build fails with the below message fatal error: 'UIKit/UIDevice.h' file not found

import <UIKit/UIDevice.h>

    ^~~~~~~~~~~~~~~~~~

"react": "16.13.1", "react-native": "0.63.2", "react-native-localization": "2.1.6",

It is working fine in "react-native": "0.62",

sangeethkumarv commented 3 years ago

Build fails only when I run in mac os using the below lib https://github.com/microsoft/react-native-macos

sangeethkumarv commented 3 years ago

https://stackoverflow.com/a/46901911 This might be useful for the fix

We need this lib to support AppKit for macOS, But by default it uses UIKit as it is build only for mobile apps