How to solve "Undefined symbols for architecture x86_64" on NSScanner? Swift pod in react-native

Viewed 2913

I recently created a stripe integration in react-native. I updated the stripe ios sdk from objective C to the latest full swift sdk, but now I got this when I build it and I don't really know how to solve it.

I already put the "Dummy" swift file, not error related to swift files whatsoever despite this one:

Undefined symbols for architecture x86_64: "(extension in Foundation):__C.NSScanner.scanUpToString(Swift.String) -> Swift.String?", referenced from: static Stripe.STPPhoneNumberValidator.formattedRedactedPhoneNumber(for: Swift.String, forCountryCode: Swift.String?) -> Swift.String in libStripe.a(STPPhoneNumberValidator.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

XCode: 12.2 (latest)

Stripe IOS SDK: 21.0.1 (latest)

React-native: 0.63.4 (latest)

I already tried creating a pure swift project (non react-native) to test the stripe sdk and it works...

Thanks

1 Answers
Related