tradle / react-native-facetec-zoom

10 stars 13 forks source link

iOS Simulator Error: null is not an object (evaluating 'native.preload') #8

Open anthony-fabrizi opened 5 years ago

anthony-fabrizi commented 5 years ago

I created a new react native app and followed the instructions of installing react-native-facetec-zoom;

When I only added this line import Zoom from 'react-native-facetec-zoom'; in App.js

I got an error in iOS Simulator

null is not an object (evaluating 'native.preload')

"dependencies": { "react": "16.8.6", "react-native": "0.60.5", "react-native-facetec-zoom": "tradle/react-native-facetec-zoom" }

I'm using version 7.0.15 of the SDK

mvayngrib commented 5 years ago

sounds like the module isn't linked. React native >= 0.60 requires you to run pod install after installing a new dependency, can u try that and re-run from xcode?

anthony-fabrizi commented 5 years ago

After I run pod install, I got another error:

Detected React Native module pod for react-native-facetec-zoom Analyzing dependencies [!] The react-native-facetec-zoom pod failed to validate due to 2 errors:

  • ERROR | attributes: Missing required attribute authors.
  • ERROR | attributes: Missing required attribute homepage.
  • WARN | source: Git sources should specify a tag.
mvayngrib commented 5 years ago

@anthony-fabrizi thanks for checking that, i guess the podspec needs an update: https://github.com/tradle/react-native-facetec-zoom/blob/master/ios/react-native-facetec-zoom.podspec (want to send a PR?)

anthony-fabrizi commented 5 years ago

After I updated the react-native-facetec-zoom.podspec on my local machine, I got an another error:

Analyzing dependencies [!] Unable to find a specification for RNReactNativeZoomSdk depended upon by react-native-facetec-zoom/Core

You have either:

I don't see Core anywhere.

mvayngrib commented 5 years ago

@anthony-fabrizi ic, interesting. I've only used this library with react native up to 0.59.x so far. I probably won't have time to look into this in the short term, but if you figure out the issue, a PR would be great!

anthony-fabrizi commented 5 years ago

I solved the .podspec issue for React-Native >= 0.60. Now I got a different error

Undefined symbol: _OBJCCLASS$_ZoomAuth

mvayngrib commented 5 years ago

@anthony-fabrizi are you sure you followed the steps with adding the ZoomAuthenticationHybrid.framework?

anthony-fabrizi commented 5 years ago

I reinstalled and copied ZoomAuthenticationHybrid.framework, same error.

ahmadallo1 commented 5 years ago

@anthony-fabrizi is this issue solved, what did you added in the podFile?

brfreek commented 4 years ago

Any update on this issue? I am facing the same error at the moment null is not an object (evaluating '_native.preload')

I have followed the steps and use the ZoomSDK provided by the tradle.io link in the README