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.
- Init project in react native
- install rn - ble-plx and import in any module
- pod install
- 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):
-
Contents of the
package.json
file:
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (1 by maintainers)
Top 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 >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
Here’s how I solved this issue:
package.json
, use below’s branch:"react-native-ble-plx": "https://github.com/below/react-native-ble-plx",
ios/Podfile
, usepod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'
node_modules/react-native-ble-plx/react-native-ble-plx.podspec
change 0.1.7 to 0.1.9Everything is working again … for now
@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.