Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Can't find "A0LockReact.h" header #146

Open
Zip753 opened this issue Apr 13, 2017 · 0 comments
Open

Can't find "A0LockReact.h" header #146

Zip753 opened this issue Apr 13, 2017 · 0 comments

Comments

@Zip753
Copy link

Zip753 commented Apr 13, 2017

I've tried importing "A0LockReact.h" in my AppDelegate.m, but it can't find the header:

... fatal error: 'A0LockReact.h' file not found
#import "A0LockReact.h"

I've linked the library with react-native link react-native-lock, and you can see that the library is actually linked in Xcode project:

09E191AB03104B42B1F18BC5 /* A0RNLock.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = A0RNLock.xcodeproj; path = "../node_modules/react-native-lock/ios/A0RNLock.xcodeproj"; sourceTree = "<group>"; };

The only thing that saves me is specifying Headers Search Path in Build Settings in Xcode project explicitly like this: "${SRCROOT}/../node_modules/react-native-lock/ios/A0RNLock/**"

Now, I've checked the config for sample-app example and you can see that the lookup path is specified here explicitly as well. Does it mean that I'm supposed to add it manually? If so, please update the README respectively.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant