auth0 / react-native-lock

[DEPRECATED] A wrapper of Lock to use with React Native (iOS & Android)
MIT License
277 stars 77 forks source link

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

Open Zip753 opened 7 years ago

Zip753 commented 7 years ago

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.