negativetwelve / react-native-lookback

React Native module for Lookback.io
MIT License
13 stars 7 forks source link

[iOS] 'framework not found Lookback' and 'setupWithAppToken is undefined' #21

Closed elimydlarz closed 7 years ago

elimydlarz commented 7 years ago

I should mention that I'm using React Native 0.40. I've installed react-native-lookback, run a pod install and a react-native link. But attempting to build the app in XCode results in the following error:

ld: framework not found Lookback
clang: error: linker command failed with exit code 1 (use -v to see invocation)

When running the app in a simulator using the React Native CLI, this happens

image

Right now, my Podfile looks like this.

platform :ios, '9.3'

target 'FieldOps' do
  use_frameworks!

  pod "LookbackSafe", "~> 1.4.1"

  target 'FieldOpsTests' do
    inherit! :search_paths
  end

end
negativetwelve commented 7 years ago

Hi @elimydlarz, thanks for reporting in. I haven't tested this library with Swift (I'm assuming you're using Swift because of use_frameworks!)

What version of Cocoapods are you using?

Here are some links that I found that might be causing this issue:

If any of these help, please let me know

elimydlarz commented 7 years ago

Thanks for your help!

I'm not sure exactly what you mean by 'using Swift' - I'm using React Native and haven't written any native code. I tried using and not using use_frameworks! and it had no effect.

I'm using Cocoapods 1.2.

negativetwelve commented 7 years ago

ahh okay, I misunderstood, this is a brand new project generated with react-native-cli?

I haven't updated our version of react-native to 0.40 yet so I'll have to spend some time doing that. When I first made this package, I had a lot of trouble linking up the headers correctly on the native side (which is similar to what you're having issues with)

elimydlarz commented 7 years ago

Yes, it's a react-native-cli generated project that we've been working on for a couple of months now. Are you thinking of updating this to work with React Native 0.40?

We'd like to have this working by Wednesday and I might take a shot at it myself if you're not planning to get to it, but I don't like my odds =/ Do you have any suggestions on where to start?

negativetwelve commented 7 years ago

Unfortunately, I'm not going to have time to complete this by then. If you submit a PR, I'd be more than happy to merge that in and push out a new release.

The problem is the native headers were moved in RN 0.40: https://github.com/facebook/react-native/releases/tag/v0.40.0

It should just be a matter of changing the native headers and then it should be good to go

negativetwelve commented 7 years ago

hi @elimydlarz, just published 1.3.0 to npm with changes made by @distributedlife that should address your issues. please let me know if things are still not working!