React-native-ble-plx: Module 'BleClientManager' not found

Created on 31 Aug 2016  路  14Comments  路  Source: Polidea/react-native-ble-plx

I get this error while trying to build your example in Xcode: /examples/ReactBLEScanner/node_modules/react-native-ble-plx/ios/BleClient.m:10:9: fatal error: module 'BleClientManager' not found

Most helpful comment

I just ran into this issue and have two comments regarding this:

Great! We will add info about carthage. Thanks.

I'm assuming @konradrodzik added the following line to the readme:

2) Make sure that you have Carthage installed on your system.

This only implies that Carthage is required for _manual_ installs. If going via the automatic approach (via rnpm) there is no mention of the Carthage requirement.

I suggest that the readme change to reflect the following:

Automatic

brew install carthage
npm install --save react-native-ble-plx
react-native link

Lastly, the npm|yarn install __succeeds__ even without carthage on the system. This should probably be changed to cause the install to fail if carthage is not installed locally.

All 14 comments

Did you done 'npm install' being in 'examples/ReactBLEScanner' directory?

Yes, tried it three times with your version 0.1.5 and twice with 0.1.3. Did I skip anything else? I just downloaded the ZIP, navigated to 'examples/ReactBLEScanner', ran 'npm install', opened the xcode file and built it to run on my iPhone.

That should be it. Just checked 0.1.5 version and npm install did the whole work.
I was able to compile and run on my iphone.
Whats is your XCode version and could you past here the whole console output from npm install?

when you run npm install it will compile 'react-native-ble-plx' library.
We are using 'carthage' there, so it needs to be installed in your system.
Please follow instructions from
https://github.com/Carthage/Carthage

Let me know if that helps.

That's it! Installing Carthage fixed the problem. Maybe you should mention in the readme that Carthage is required. Thank you!

Great! We will add info about carthage. Thanks.

@konradrodzik im using ubuntu, to build an android react native app. I'm getting the same error.
Carthage isn't only for IOS?

@jcrjaci could you give us full log from your android problem?
Carthage is needed for iOS projects.

@konradrodzik problem solved.
Stupid error.
I missed the import

import com.polidea.reactnativeble.BlePackage;

in the mainApplication.java.

The import is missing in Read.me too.

Thanks, we will check it : )

@konradrodzik btw, nothing about the issue, but if you know to answer me i appreciate.
I only test the basics of the library.
like find dispositive and connect to them.

But now i need to send them hexadecimal commands, and read the answer.
i see that i need to convert my commands to base64.
but this should work right?
i didn't test yet

@jcrjaci We don't force users how they want to operate on values. You can add additional dependency: for example 'buffer' library which will let you just do that.

I just ran into this issue and have two comments regarding this:

Great! We will add info about carthage. Thanks.

I'm assuming @konradrodzik added the following line to the readme:

2) Make sure that you have Carthage installed on your system.

This only implies that Carthage is required for _manual_ installs. If going via the automatic approach (via rnpm) there is no mention of the Carthage requirement.

I suggest that the readme change to reflect the following:

Automatic

brew install carthage
npm install --save react-native-ble-plx
react-native link

Lastly, the npm|yarn install __succeeds__ even without carthage on the system. This should probably be changed to cause the install to fail if carthage is not installed locally.

It's very important that you first install the "Carthage" and then install the "react-native-ble-plx", otherwise you will see the same error massage "BleClientManager not found."

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haohcraft picture haohcraft  路  5Comments

BlackCod3 picture BlackCod3  路  3Comments

alfacommunication-alessandro picture alfacommunication-alessandro  路  3Comments

lenninlc picture lenninlc  路  3Comments

alfacommunication-alessandro picture alfacommunication-alessandro  路  4Comments