#Iconate - Stripe React Native
1 messages · Page 1 of 1 (latest)
Hmmmm 🤔 I haven't hit anything like this but let me reach out to some of my colleagues.
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
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.
Awesome appreciate it
To be clear, can you build your project?
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?
Sure
gotta step away to eat, will try in like 30 min, its in the process of building
👍
Okay, more digging reveals it appears this is an issue with Xcode x13
https://github.com/stripe/stripe-react-native/issues/707
nvm alias default node appears to be a functioning work around for now
Ok let me try this
Ok so none of those worked...I found this article:
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
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
Yikes! Did you try that last one and, if so, was it successful?
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
🤷♂️
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'andplatform :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
thanks for that! As you know, we are all figuring this stuff out together. OSS FTW