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.

Project Setup: Running react-native and building ios fails due to errors in MultiplatforBleAdapter pod

See original GitHub issue
  • I am running the latest version
  • Yes - 2.0.2
  • I checked the documentation and found no answer
  • Yes
  • I checked to make sure that this issue has not already been filed
  • Yes, I have tried to reach out to ios repos regarding this issue as well
  • I followed every installation step mentioned in README file.
  • Yes, my team confirms the errors indicate in logs that they are realted to rn - ble-plx

Setup problem

Please describe the problem you are experiencing.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Init project in react native
  2. install rn - ble-plx and import in any module
  3. pod install
  4. command to build and run on ios simulator (any iPhone)

Context

I am trying to run an organization repository (react native app on ios and Andriod). I have not tried android yet since I only have access to the ios simulator through xcode. My team is working on it but similar issue arised after recent install of this library for bluetooth com.

  • Library version: X.Y.Z

  • Platform: iOS

  • Platform logs (logcat/XCode): Screen Shot 2021-10-25 at 12 50 59 PM

  • Contents of the package.json file:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
t3db0tcommented, Oct 27, 2021

Here’s how I solved this issue:

  1. In package.json, use below’s branch: "react-native-ble-plx": "https://github.com/below/react-native-ble-plx",
  2. In ios/Podfile, use pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'
  3. In node_modules/react-native-ble-plx/react-native-ble-plx.podspec change 0.1.7 to 0.1.9

Everything is working again … for now

2reactions
bkboothcommented, Nov 2, 2021

@t3db0t’s fix worked for me. I didn’t need step 3 though, after yarn/npm install the podspec in react-native-ble-plx was already updated (might have been fixed since that comment).

Also, you might want to reference a commit hash in your package.json dependency (e.g. "react-native-ble-plx": "https://github.com/below/react-native-ble-plx#55ff5cb") Just in case more commits get added to that repo (nefarious or otherwise), you might not want to bring those into your repo too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 13 error builds · Issue #899 · dotintent/react-native-ble-plx
I run pod update. Downloading dependencies Installing MultiplatformBleAdapter 0.1.7 (was 0.1.6) Installing react-native-ble-plx 2.0.2 (was ...
Read more >
XCode 13 & react-native-ble-plx troubleshootings
So I tried to specify version of MultiplatformBleAdapter to 0.1.9 at react-native-ble-plx's settings. Open package.json of your app.
Read more >
New React-Native Project: Build fails (ios) - Stack Overflow
In my macOS system, this build error was resolved by restarting the computer. The issue has been reported at ...
Read more >
react-native-ble-plx - npm
Start using react-native-ble-plx in your project by running `npm i ... Bluetooth Low Energy library wrapping Multiplatform Ble Adapter.
Read more >
Xcode 13 - warning: Could not read serialized diagnostics file
I just updated to xcode 13 but when i try to compile im getting this error: warning: Could not read serialized diagnostics file:...
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