React-native-orientation: orientation.h file is not found

Created on 8 Aug 2016  路  8Comments  路  Source: yamill/react-native-orientation

Getting an error like orientation.h file is not found, when i try to run it in xcode, please give me suggestion that how to solve this

Most helpful comment

don't know what caused the issue, but it appeared after upgrading to [email protected]

you can use:

#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"

as a temporary workaround.

All 8 comments

same issue with [email protected]

don't know what caused the issue, but it appeared after upgrading to [email protected]

you can use:

#import "../../node_modules/react-native-orientation/iOS/RCTOrientation/Orientation.h"

as a temporary workaround.

libRCTOrientation.a can't be created..

For anyone still encountering this issue, I fixed it by manually linking the library. Step 3 was the step I overlooked.

http://facebook.github.io/react-native/docs/linking-libraries-ios.html#step-3

react-native link at the home directory of your project

Tried options suggested by, @tststs , @mjbader and @leechance.

@mjbader Can you let us know what is the exact path you entered in Xcode->Header path.
Mine is: $(SRCROOT)/node_modules/react-native-orientation/iOS/RCTOrientation/

@leechance link is already done.

But xCode still gives file not found error.

@jiteshwadia MY header search path is
$(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation

Please follow updated README documentation on installing this package. If problems persist, create a new issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magicspon picture magicspon  路  7Comments

abartolo picture abartolo  路  6Comments

sergio-solnet picture sergio-solnet  路  9Comments

AmmiWang picture AmmiWang  路  3Comments

sujay-bidchat picture sujay-bidchat  路  6Comments