You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed latest version of react-native and Xcode on 10.14 and created new project. But whenever i run run-ios i get compilation errors related to cmath.h: no members * in the global namespace, e.g.:
In file included from ./node_modules/react-native/ReactCommon/yoga/yoga/Yoga-internal.h:11: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:317:9: error: no member named 'isnan' in the global namespace using ::isnan;
All errors are related to ReactCommon/yoga/yoga/* but it seems the root cause lives elsewhere. I'm not an expert in cpp, what could be the problem and how to fix it? My environment:
Interesting, this seems to be related to the ordering of imports but I'm unsure why it would be uniquely happening on your project instead of to everyone. I tried a new project from scratch and didn't get these issues.
My guess is that maybe you had:
A bad build cache in Xcode's derived data from an upgrade?
The command line tools setup in Xcode's prefs being an outdated version of Xcode
Environment
Description
Installed latest version of react-native and Xcode on 10.14 and created new project. But whenever i run run-ios i get compilation errors related to cmath.h: no members * in the global namespace, e.g.:
All errors are related to ReactCommon/yoga/yoga/* but it seems the root cause lives elsewhere. I'm not an expert in cpp, what could be the problem and how to fix it? My environment:
In logs i can see the following flags to clang:
The text was updated successfully, but these errors were encountered: