rusel1989 / react-native-bluetooth-serial

Port of https://github.com/don/BluetoothSerial for react native
476 stars 291 forks source link

Cant run example #21

Open diogoviannaaraujo opened 7 years ago

diogoviannaaraujo commented 7 years ago

My example does not run, after run-ios i get a crash:

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist

twilco commented 7 years ago

I'm encountering the same issue.

aaaddduuu commented 7 years ago

You can try ‘react-native upgrade’.I use this command to solve the problem

rusel1989 commented 7 years ago

I have been developing mostly for android for last couple of months, so iOS version might be buggy. Unfortunately I am pretty busy so PRs are welcomed 😉

LingboTang commented 6 years ago

@aduroidpc I used that command to solve the problem, however, the example posted here is still outdated, it does not work with latest version of react-native 0.51, we can build it, but we can't successful run it on devices.

@rusel1989 , there are couple of things you probably need to update for your example.

  1. You need to change the route of your application in index.js, you are importing App from ./src/App.js which should be BluetoothSerialExample.

  2. NativeModule cannot resolve BluetoothSerial, I haven't figure out what the real cause is, so please look at it.

I would like to use bluetooth serial once its up-to-date again. I've used the phoneGap version before for Android, it works well. I would use this for ios as well.