ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

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

Open sangeethkumarv opened this issue 5 years ago • 2 comments

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 avatar Sep 09 '20 11:09 sangeethkumarv

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

sangeethkumarv avatar Sep 09 '20 11:09 sangeethkumarv

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

sangeethkumarv avatar Sep 09 '20 11:09 sangeethkumarv