januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
361 stars 420 forks source link

[!] use_native_modules! skipped the react-native dependency 'react-native-bluetooth-escpos-printer'. No podspec file was found. #69

Open PhamMinhKha opened 5 years ago

PhamMinhKha commented 5 years ago

Android work perfect but ios get error

[!] use_native_modules! skipped the react-native dependency 'react-native-bluetooth-escpos-printer'. No podspec file was found.

Screen Shot 2019-09-08 at 5 26 30 PM Package.json { "name": "SuaChuaPro", "version": "0.0.1", "private": true, "scripts": { "start": "react-native start", "test": "jest", "lint": "eslint .", "ios": "react-native run-ios --simulator=\"iPhone 6\"", "android": "react-native run-android" }, "dependencies": { "@react-native-community/async-storage": "^1.6.1", "@react-native-firebase/app": "^0.3.0", "@react-native-firebase/firestore": "^0.3.0", "@react-native-firebase/storage": "^0.3.0", "native-base": "^2.13.5", "random-string": "^0.2.0", "react": "^16.9.0", "react-native": "^0.61.0-rc.2", "react-native-bluetooth-escpos-printer": "^0.0.5", "react-native-gesture-handler": "^1.4.1", "react-native-image-picker": "^1.1.0", "react-native-loading-spinner-overlay": "^1.0.1", "react-native-reanimated": "^1.3.0-alpha", "react-native-screens": "^2.0.0-alpha.1", "react-navigation": "^3.12.1", "react-redux": "^7.1.1", "redux": "^4.0.4", "redux-saga": "^1.0.5", "validate.js": "^0.13.1" }, "devDependencies": { "@babel/core": "^7.5.5", "@react-native-community/eslint-config": "^0.0.5", "babel-jest": "^25.0.0", "eslint": "^6.3.0", "jest": "^25.0.0", "jetifier": "^1.6.4", "metro-react-native-babel-preset": "^0.56.0", "react-test-renderer": "^16.9.0", "redux-devtools-extension": "^2.13.8" }, "jest": { "preset": "react-native" } }

ujosatXyZ commented 4 years ago

PR to add a podspec

bradrisse commented 4 years ago

https://github.com/januslo/react-native-bluetooth-escpos-printer/pull/76/files

Add the the podspec file and the small change, cd ios pod install cd .. react-native run-ios

junix13 commented 4 years ago

https://github.com/januslo/react-native-bluetooth-escpos-printer/pull/76/files

Add the the podspec file and the small change, cd ios pod install cd .. react-native run-ios

May I know how to add this and where? @bradrisse

pankaj2k9 commented 4 years ago

During installation you need to use "npm install https://github.com/januslo/react-native-bluetooth-escpos-printer.git --save"

HumayounBaig commented 4 years ago

hey there can anyone help me with where to add this podspec file?

dinhnhatbang commented 3 years ago

Try following these steps:

rm -rf node_modules
rm -rf package-lock.json
npm install
npm remove react-native-bluetooth-escpos-printer
npm install https://github.com/januslo/react-native-bluetooth-escpos-printer.git --save
cd ios
rm -rf Podfile.lock
rm -rf Pods
pod install