question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failed on iOS Undefined symbol: _swift_getOpaqueTypeConformance

See original GitHub issue

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: 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:open
  • Created 2 years ago
  • Reactions:24
  • Comments:10

github_iconTop GitHub Comments

16reactions
andrea-provenzalecommented, Apr 21, 2021

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

7reactions
Jpoliachikcommented, Mar 27, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found