Build failed on iOS Undefined symbol: _swift_getOpaqueTypeConformance
See original GitHub issueThe problem
Build failed
Environment
tipsi-stripe
version: 9.0.0- Last
tipsi-stripe
version where the issue was not reproduced (if applicable): - iOS or Android: iOS
- OS version: MacOS
- React-Native version: 0.64
Undefined symbol: _swift_getOpaqueTypeConformance
If remove library_search_path, like mentioned here: https://github.com/react-native-community/upgrade-support/issues/62
then react-native-linear-gradient failed in build.
Library not found for -lBVLinearGradient
Issue Analytics
- State:
- Created 2 years ago
- Reactions:24
- Comments:10
Top Results From Across the Web
linking error trying to use SwiftUI - Undefined symbol
I'm using Xcode 11.3.1. My code that conditionally presents a SwiftUI view (embedded in a UIHostingController) is wrapped in if #available(iOS ...
Read more >Xcode 12b3 Undefined symbol: __swi… - Apple Developer
The example is when building for the simulator, but I get the same error building for an arm device as well. I don't...
Read more >Build ios fails with Undefined symbols. It succeeds locally and ...
hi Build ios fails with Undefined symbols. It succeeds locally and only fails with cloud builds error log: 7851: ❌; Undefined symbols for....
Read more >Xcode Build fails - Undefined symbols for architecture arm64
Hey, I am really hoping someone can help me here, I have a unity project that runs in editor no issues, When I...
Read more >Fixing React Native build error: Undefined symbols ... - Medium
While running yarn ios for React Native v0.64.2 on my mac machine (macOS 11.6, XCode 13) i've encountered following error: Undefined symbols ......
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 FreeTop 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
Top GitHub Comments
I managed to make it work by removing “$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)” line from LIBRARY_SEARCH_PATHS in project.pbxproj file, as mentioned here: https://github.com/react-native-community/upgrade-support/issues/62
I think the root issue is related to Stripe’s recent iOS SDK 21.x update, and their switch to Swift. See https://stripe.com/docs/mobile/ios/sdk-21-migration
I got my build working as a workaround by downgrading
tipsi-stripe
to8.0.2
, and I also had to explicitly install Stripepod 'Stripe', '19.0.1'
in my Podfile, otherwisetipsi-stripe
would include the latest Stripe version, which we don’t want.