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.

Configuring React-native with React-native-ble-plx

See original GitHub issue

So I was following this guide: “https://blog.expo.io/so-you-want-to-build-a-bluetooth-app-with-react-native-and-expo-6ea6a31a151d

At “3–IOS Setup” in first step, “pod install” I get this error I’ve got no idea why, I followed the exact guide.

Ibrahims-MacBook-Pro:appTestibrahim$ cd ./ios
Ibrahims-MacBook-Pro:ios ibrahim$ pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Pre-downloading: `ExpoKit` from `http://github.com/expo/expo.git`, tag `ios/2.5.10`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `react-native-ble-plx` from `../node_modules/react-native-ble-plx`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
[!] Unable to find a specification for `react-native-ble-plx-swift` depended upon by `react-native-ble-plx`
Ibrahims-MacBook-Pro:ios ibrahim$ 

this is the error that I get:

[!] Unable to find a specification for react-native-ble-plx-swift depended upon by "react-native-ble-plx"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

28reactions
bradyrichmondcommented, Sep 21, 2018

Found the solution! You just need to add this line to your ./ios/Podfile:

pod 'react-native-ble-plx-swift', :path => '../node_modules/react-native-ble-plx'.

Then run pod install again.

4reactions
leechenghsiucommented, Dec 16, 2019

@isa3bel at the top of your Podfile

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-ble-plx - npm
npm install --save react-native-ble-plx · Enter ios folder and run pod update · Add NSBluetoothAlwaysUsageDescription in info.plist file. · If you ...
Read more >
dotintent/react-native-ble-plx: React Native BLE library - GitHub
Android (example setup) · npm install --save react-native-ble-plx · In top level build.gradle make sure that min SDK version is at least 18:...
Read more >
react-native-ble-plx 2.0.2 | Documentation
First step is to create BleManager instance which is an entry point to all available APIs. Make sure to create it after application...
Read more >
Configuring React-native with React-native-ble-plx
Open Podfile which is located inside ./ios folder and add this line pod 'react-native-ble-plx-swift', :path => '.
Read more >
@config-plugins/react-native-ble-plx examples - CodeSandbox
Learn how to use @config-plugins/react-native-ble-plx by viewing and forking example apps that make use of @config-plugins/react-native-ble-plx on CodeSandbox.
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