React-native-ble-plx: Linker Error finding Swift Support Libraries

Created on 1 May 2019  路  4Comments  路  Source: Polidea/react-native-ble-plx

Prerequisites

Start with a react-native app (not ejected Expo)

Expected Behavior

Build and run

Current Behavior

Linker error:
ld: warning: Could not find auto-linked library 'swiftFoundation'
ld: warning: Could not find auto-linked library 'swiftDarwin'
ld: warning: Could not find auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find auto-linked library 'swiftCore'
ld: warning: Could not find auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find auto-linked library 'swiftObjectiveC'
ld: warning: Could not find auto-linked library 'swiftDispatch'
ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport'
Undefined symbols for architecture arm64:

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Install react-native-ble-plx using yarn add
  2. react-native link
  3. Build-and-Run in Xcode

Context

The fix is to add a single empty swift file to your main app. This will trigger Xcode to link in Swift and create a bridging header.

We should update the README to include this simple step

bug

Most helpful comment

Following this solution worked for me
Dropping for people facing same issue and looking for solution
https://stackoverflow.com/a/56187043/9241085

All 4 comments

Oh my, I'm sorry, the README already says that and I skimmed over it. So sorry!

(feels embarrased)

Following this solution worked for me
Dropping for people facing same issue and looking for solution
https://stackoverflow.com/a/56187043/9241085

@myckhel That solution worked for me as well. Thanks!

@paddlefish The fix you suggested worked when I experience the issue integrating opentok-react-native

Was this page helpful?
0 / 5 - 0 ratings

Related issues

biks152207 picture biks152207  路  3Comments

SlavaInstinctools picture SlavaInstinctools  路  4Comments

haohcraft picture haohcraft  路  5Comments

alfacommunication-alessandro picture alfacommunication-alessandro  路  4Comments

devgeno picture devgeno  路  4Comments