react-native-payments icon indicating copy to clipboard operation
react-native-payments copied to clipboard

Ios Linking problems

Open Marcoo09 opened this issue 3 years ago • 5 comments

Hi!

I was trying to setup this library and I'm having some problems on Ios:

image

I tried adding on Link Binary with Libraries the file libswiftwebkit:

image

But I continue having one error and I cannot fix that:

image

Thanks in advance

Marcoo09 avatar Feb 27 '21 21:02 Marcoo09

I have the same issue: RN 0.63.4

I added File.swift and Bridging Header, as shown here: https://github.com/facebook/react-native-fbsdk/issues/755#issuecomment-634101710

Now I get the same as your second error:

Showing Recent Messages
Undefined symbol: _swift_getOpaqueTypeConformance

Showing Recent Messages
Undefined symbol: (extension in Foundation):__C.NSScanner.scanUpToString(Swift.String) -> Swift.String?

eqlion avatar Mar 12 '21 15:03 eqlion

I also had this error and managed to compile by removed the Stripe/Braintree dependencies (we didn't need them anyway)

  s.dependency 'React'
#   s.dependency 'Stripe'
#   s.dependency 'Braintree'

I currently can't find a way to remove these in the main Podilfe and can only do it bt manually updating the podspec in node_modules

markwillis82 avatar Mar 24 '21 09:03 markwillis82

I'm also getting this error, and commenting out Stripe/Braintree in the podfile make the errors go away, but it's a rather inconvenient way to deal with the issue. Did anyone get around this in a different way?

nmilcoff avatar Mar 29 '21 17:03 nmilcoff

I have the same issue: RN 0.63.4

I added File.swift and Bridging Header, as shown here: facebook/react-native-fbsdk#755 (comment)

Now I get the same as your second error:

Showing Recent Messages
Undefined symbol: _swift_getOpaqueTypeConformance

Showing Recent Messages
Undefined symbol: (extension in Foundation):__C.NSScanner.scanUpToString(Swift.String) -> Swift.String?

After making this change, I was able to get rid of the remaining error by applying this workaround, which I saw recommended here. I hope it helps!

nmilcoff avatar Mar 29 '21 20:03 nmilcoff

running react-native link react-native-payments and cd ios && pod install did the trick in my case

GFean avatar Apr 03 '21 00:04 GFean