undefined-symbols-for-architecture-x86_64-on-ios after adding Stripe React Native
See original GitHub issueDescribe the bug
I am getting the following error when I run the app in Release mode.
undefined-symbols-for-architecture-x86_64-on-ios
That error is documented here but it only fixes the issue in the Debug scheme, not in the Release scheme.
That same fix is also documented here but also fix the issue in the Debug scheme, not the Release scheme.
To Reproduce Steps to reproduce the behavior:
- Install a new React Native app
- Add Stripe as instructed in the Getting started documentation
- Open your project via Xcode, go to project -> build settings, find library search paths and remove all swift related entries such as:
$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)
and$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)
. - Create a new Swift file to the project (File > New > File > Swift), give it any name (e.g. Fix.swift), and create a bridging header when prompted by Xcode.
- Run the app in Debug scheme (From your XCode, go to Product > Scheme > Edit Scheme) and choose Run on the left and select Debug in the right pane, do the same for Test
- Run the app
- The app will build successfully
- Repeat step 5 but change Debug to Release then run the app, Build will fail with error
undefined-symbols-for-architecture-x86_64-on-ios
Expected behavior The app should build successfully in the Release scheme just like how it is building successfully in the Debug Scheme.
Screenshots
Smartphone (please complete the following information):
- Device: iPhone 11 Pro Max Simulator
- OS: 14.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:15
Top Results From Across the Web
React Native SDK
The Stripe React Native SDK allows you to build payments into your native Android and iOS apps using React Native. We provide powerful...
Read more >Getting started & Installation fails · Issue #7 · stripe ...
Android builds but adding import {StripeProvider} from 'react-native-stripe-sdk'; breaks the project. RN isn't giving me an error anymore, I just get a white ......
Read more >React Native: Accepting payments with Stripe in your app ...
Stripe's React Native SDK provides a convenient API for allow developers to accept payments natively in their applications in a performant ...
Read more >Add Stripe to a React Native application - YouTube
In this episode, you'll learn how to add Stripe to an Expo based React Native application. ### Table of contents 00:00 Introduction01:08 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
same issue:
need help