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 archive with uses_framework!: 'Lock/Lock.h' file not found #135

Open corradio opened 7 years ago

corradio commented 7 years ago

I'm using RN 0.42 and have followed all the steps in the README. I'm using "uses_framework!" in the Podfile, because my project uses Swift. Additionally, to be able to run the project, I had to:

However, I can run but not archive. When archiving, I get the following error: image A0LockReact.h:24:9: 'Lock/Lock.h' file not found

Can someone help with this?

hanpanpan200 commented 7 years ago

Hi I got the same error! Following and Trying every step in the ReadMe document.

I'm using react-native@0.42 too.

Can someone help with this?

maximewimez commented 7 years ago

Hi, Same error for me using react-native@0.43.1. Can someone help with this?

brh55 commented 7 years ago

@maximewimez @hanpanpan200 Ensure you have the pods listed in Cocapod:

  pod 'Lock', '~> 1.29'
  pod 'Lock/TouchID'
  pod 'Lock/SMS'
  pod 'Lock/Email'
  pod 'Lock/Safari'

then pod install

j-wang commented 7 years ago

I'm using "uses_framework!" in the Podfile, because my project uses Swift.

You don't need to uncomment use_framework! unless something explicitly needs it. Your project (because you're using RN) is Objective-C. Just because you have hybrid code doesn't mean you need to use it—in my app, I have a lot of Swift code, but keep use_framework! off.

I can confirm that on my side, having use_framework does break linking.