Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Build failed on iOS Undefined symbol: _swift_getOpaqueTypeConformance #742

Closed
jp928 opened this issue Mar 25, 2021 · 12 comments
Closed

Build failed on iOS Undefined symbol: _swift_getOpaqueTypeConformance #742

jp928 opened this issue Mar 25, 2021 · 12 comments

Comments

@jp928
Copy link

jp928 commented Mar 25, 2021

The 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:
react-native-community/upgrade-support#62

then react-native-linear-gradient failed in build.

Library not found for -lBVLinearGradient
@Jpoliachik
Copy link

I'm getting this error too. Using Xcode 12.4, with ReactNative 0.63.4, and tipsi-stripe: ^9.0.0
App built fine before. But immediately after yarn add tipsi-stripe and pod install I start getting these build errors.

@Jpoliachik
Copy link

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 to 8.0.2, and I also had to explicitly install Stripe pod 'Stripe', '19.0.1' in my Podfile, otherwise tipsi-stripe would include the latest Stripe version, which we don't want.

@jp928
Copy link
Author

jp928 commented Mar 30, 2021

@Jpoliachik Thanks for sharing your solution. It is most likely the solution by far.

@zztczcx
Copy link

zztczcx commented Apr 17, 2021

@Jpoliachik Thanks. I tried yarn add tipsi-stripe 8.0.2 and cd ios & pod install (Stripe 19.4.0), which also builds successfully.

@andrea-provenzale
Copy link

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:
react-native-community/upgrade-support#62

@teamseamive
Copy link

So no way to tipsi-stripe 9.0.0 with Stripe 21.4.0 except downgrading??

@zhahaoyu
Copy link

Only removing "$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)" this does not solve the problem.

I had to do the following to resolve the issue completely

Removed all entries from LIBRARY_SEARCH_PATHS in the Project configuration
Add a new Swift file to the project (File > New > File > Swift), and call it whatever you want

@babyrusa
Copy link

babyrusa commented Jul 7, 2021

I'm on tipsi-stripe 9.0.0 with Stripe 21.6.0 but still experience building errors on XCode. I will try to downgrade
UPDATE. Doing this works

Removed all entries from LIBRARY_SEARCH_PATHS in the Project configuration
Add a new Swift file to the project (File > New > File > Swift), and call it whatever you want

@minh-dai
Copy link

same +1 :(((

@emernuness
Copy link

Same from me

@bonnmh
Copy link

bonnmh commented Jan 17, 2023

error build: Undefined symbol: _swift_getOpaqueTypeConformance

@fbartho
Copy link
Collaborator

fbartho commented Jun 20, 2023

Closing this ticket, so that new users don't think this project is still active.

Stripe does not want you using this, and you will find pain if you do; Please migrate to the official @stripe/stripe-react-native package, for your user's safety, and your developer's sanity!

See more:

@fbartho fbartho closed this as completed Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests