Giter Site home page Giter Site logo

Comments (14)

julienvincent avatar julienvincent commented on September 8, 2024 3

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:

  1. 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.

from react-native-ble-plx.

konradrodzik avatar konradrodzik commented on September 8, 2024

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

from react-native-ble-plx.

patrickhoehn avatar patrickhoehn commented on September 8, 2024

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.

from react-native-ble-plx.

konradrodzik avatar konradrodzik commented on September 8, 2024

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.

from react-native-ble-plx.

patrickhoehn avatar patrickhoehn commented on September 8, 2024

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

from react-native-ble-plx.

konradrodzik avatar konradrodzik commented on September 8, 2024

Great! We will add info about carthage. Thanks.

from react-native-ble-plx.

jcrjaci avatar jcrjaci commented on September 8, 2024

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

from react-native-ble-plx.

konradrodzik avatar konradrodzik commented on September 8, 2024

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

from react-native-ble-plx.

jcrjaci avatar jcrjaci commented on September 8, 2024

@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.

from react-native-ble-plx.

konradrodzik avatar konradrodzik commented on September 8, 2024

Thanks, we will check it : )

from react-native-ble-plx.

jcrjaci avatar jcrjaci commented on September 8, 2024

@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

from react-native-ble-plx.

Cierpliwy avatar Cierpliwy commented on September 8, 2024

@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.

from react-native-ble-plx.

konradrodzik avatar konradrodzik commented on September 8, 2024

You can see in the example app how 'Buffer' can be used:
https://github.com/Polidea/react-native-ble-plx/blob/0eb39ce1c7f39fde5d5eafd4e39b6dad21c147e0/examples/ReactBLEScanner/app/characteristics/CharacteristicDetailsComponent.js

from react-native-ble-plx.

farshidbakh avatar farshidbakh commented on September 8, 2024

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."

from react-native-ble-plx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.