yamill / react-native-orientation

Listen to device orientation changes in react-native and set preferred orientation on screen to screen basis.
https://www.npmjs.com/package/react-native-orientation
ISC License
1.72k stars 810 forks source link

Undefined symbol: _OBJC_CLASS_$_Orientation #363

Closed ogerfaber closed 5 years ago

ogerfaber commented 5 years ago

After installing and linking project following the readme instructions. Xcode still do not find Orientation.h, so I added $(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation recursive in Header Search Paths and then I'm getting the following build error: Undefined symbol: _OBJC_CLASS_$_Orientation

My React Native version is 0.60.3

Capture d’écran 2019-09-25 à 17 56 07
pans0930 commented 5 years ago

then you resolve this question?

ogerfaber commented 5 years ago

no sorry

hossamnasser938 commented 4 years ago

experiencing the same issue

appfr3d commented 3 years ago

A bit late, but maybe someone still encounters this error. I fixed this by adding this line to my Podfile: pod 'react-native-orientation', :path => '../node_modules/react-native-orientation' and doing a pod install inside the ios folder in my terminal.