简体   繁体   中英

React-Native error: Command PhaseScriptExecution failed with a nonzero exit code

I have recently started with React-Native and wanted to try a bluetooth connectivity library ( https://github.com/innoveit/react-native-ble-manager )

Steps to create app and run on device:

  1. react-native init myBluetoothHandler

  2. cd myBluetoothHandler

  3. npm i --save react-native-ble-manager

When I do this I see this log: 在此处输入图片说明

  1. react-native link react-native-ble-manager

Which fails with this error log: 在此处输入图片说明

Just for a hit and try I ran step 3 again and this printed. And after that link command also worked.: 在此处输入图片说明

But I am not able to run the project from Xcode on my device. I see this error:

在此处输入图片说明

Same happened to me when I tried a different library: https://github.com/Polidea/react-native-ble-plx/issues/388

Use react-native init <project_name> --version 0.59.0 . Do not use rc versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM