#Iconate - Stripe React Native

1 messages · Page 1 of 1 (latest)

last zephyr
#

Hmmmm 🤔 I haven't hit anything like this but let me reach out to some of my colleagues.

north bluff
#

Im getting errors when I compile in xcode such as

'UIFontMetrics' is only available in iOS 11.0 or newer

But im building for iphone 11 -> iOS 15.2

last zephyr
#

Not leaving you hanging (at least not intentionally) I've just reached out for another pair of eyes since I haven't worked with React Native yet.

north bluff
#

Awesome appreciate it

last zephyr
#

To be clear, can you build your project?

north bluff
#

no this is a build failure

#

Same issue in both xcode or building from CLI

last zephyr
#

Gotcha, thanks

#

Can you try using cmd+shift+k to create a clean build and delete the DerivedData folder rm -rf ~/Library/Developer/Xcode/DerivedData?

north bluff
#

Sure

#

gotta step away to eat, will try in like 30 min, its in the process of building

last zephyr
#

👍

#

nvm alias default node appears to be a functioning work around for now

north bluff
#

Ok let me try this

north bluff
#

Ok so none of those worked...I found this article:

https://stackoverflow.com/questions/65130609/how-to-solve-undefined-symbols-for-architecture-x86-64-on-nsscanner-swift-pod

Which someone was trying to install Stripe SDK

And this was the solution

https://github.com/react-native-community/upgrade-support/issues/62#issuecomment-622985723

I fixed similar error in my iOS app by removing "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", line from LIBRARY_SEARCH_PATHS in project.pbxproj file.

lol insane

GitHub

Environment System: OS: macOS 10.15.4 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 2.02 GB / 32.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.7.0 - /usr/local/bin/node Yarn: 1....

last zephyr
#

Yikes! Did you try that last one and, if so, was it successful?

north bluff
#

Yeah my app is built and running now

#

because of that last thing, but who knows if it was a combination of the other solutions you mentioned too

last zephyr
#

🤷‍♂️

north bluff
#

For the record if anyone reads this in the future

  • Im using an M1 mac, running iTerm & Xcode in Rosetta mode
  • Using "react-native": "0.63.4",
  • Had to remove ""$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)"", line from LIBRARY_SEARCH_PATHS in project.pbxproj file.
  • Make sure config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0' and platform :ios, '12.0' are the same version (in this case 12) in the Podfile
  • Using node version 16.14.0
  • macOS Monnterey 12.1
  • Xcode 13.2.1

Built using CLI

last zephyr
#

thanks for that! As you know, we are all figuring this stuff out together. OSS FTW