react-native-fabric-digits icon indicating copy to clipboard operation
react-native-fabric-digits copied to clipboard

Problem to install/build

Open deoqc opened this issue 8 years ago • 3 comments

I'm using react-native 0.25.1 and linked using rnpm (everything seems correct in the ios version, the .xcodeproj were added and the lib*.a linked --> I suggest to add this option to the README also).

The error log from XCode:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_DGTAppearance", referenced from:
      objc-class-ref in libRCTDigitsManager.a(RCTDigitsManager.o)
  "_OBJC_CLASS_$_DGTAuthenticationConfiguration", referenced from:
      objc-class-ref in libRCTDigitsManager.a(RCTDigitsManager.o)
  "_OBJC_CLASS_$_DGTOAuthSigning", referenced from:
      objc-class-ref in libRCTDigitsManager.a(RCTDigitsManager.o)
  "_OBJC_CLASS_$_Digits", referenced from:
      objc-class-ref in libRCTDigitsManager.a(RCTDigitsManager.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Just one more conceptual question. The android instructions asks for an API KEY and SECRET, but not the ios. How is that?

deoqc avatar Jun 09 '16 14:06 deoqc

hey @deoqc -- haven't got time right now but let me have a look at this for you and get back to you. I was getting similar messages for TwitterKit which I've flagged to the Fabric team.. hopefully the fix will be the same.

Which version of DigitsKit are you using?

jpdriver avatar Jun 24 '16 10:06 jpdriver

@jpdriver I mistakeling had not installed the fabric/digits sdk - I had missed this first step.

I installed it now, and doesn't have this problem anymore.

But the basic example in your code throws and error when I click the Login (Do it) button: undefined is not an object (evaluating 'DigitsManager.launchAuthentication')

Using latest fabric/digits sdk and [email protected]

deoqc avatar Jun 26 '16 13:06 deoqc

Odd, it's working for me.. Can you step through as far as possible with the Chrome Debugger? We'll need to know whether DigitsManager is being exported to your Native Modules..

My guess is something's gone wrong with your linking, and it hasn't actually exported correctly.

I've tested using the latest DigitsKit & React Native..

jpdriver avatar Jul 16 '16 18:07 jpdriver