React-native-ble-plx: Command /bin/sh failed with exit code 1

Created on 17 Mar 2017  路  19Comments  路  Source: Polidea/react-native-ble-plx

Unrecognized arguments: "/Users/willdent/Library/Developer/Xcode/DerivedData/ble-ausclppugcjrecboiwdlaycdoyfq/Build/Intermediates/ble.build/Debug-iphoneos/ble.build/Script-5D4CFAB11E7BFAE5005783F4.sh"
Command /bin/sh failed with exit code 1

Running this on:
Version 8.2.1 (8C1002)

Most helpful comment

  1. make sure carthage has installed
  2. make sure the frameworks have been in node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Build/iOS/, otherwise you should re npm install the lib
  3. and my run script looks like below:

screen shot 2017-03-20 at 9 06 58 am

All 19 comments

any update?

@haohcraft maybe we can help one another? Are you pulling from master or using what is in NPM?

I tried with npm. Guess I will try from master.

@WillDent so I have resolved this. I had put the copy-frameworks script in the wrong place. Could you share me with a screenshot of your Run Script setting in xcode? I could take a look.

Hi, I have the same issue. And this what I have set.
screen shot 2017-03-23 at 1 17 45 pm

  1. make sure carthage has installed
  2. make sure the frameworks have been in node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Build/iOS/, otherwise you should re npm install the lib
  3. and my run script looks like below:

screen shot 2017-03-20 at 9 06 58 am

Thanks. That fixed it for me, I originally put the copy-frameworks line in the Shell input box.

@haohcraft @tuantle got this working. thanks

I am getting
Failed to read file or folder at /Users/michaelcai/Desktop/React/IoTApp/ios/../node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Build/iOS/RxBluetoothKit.framework

Command /bin/sh failed with exit code 1

Probably you didn't build iOS frameworks properly. Does carthage finish successfully when react-native-ble-plx is installed? Please check all manual steps.

I'm having the same problem. The specified folder exists:

$ ls -la node_modules/react-native-ble-plx/ios/BleClientManager/Carthage/Build/iOS/RxBluetoothKit.framework
total 12672
drwxr-xr-x   6 myname  myrole      204 Aug 13 20:46 .
drwxr-xr-x  24 myname  myrole      816 Aug 13 20:46 ..
drwxr-xr-x   3 myname  myrole      102 Aug 13 20:46 Headers
-rw-r--r--   1 myname  myrole      769 Aug 13 20:46 Info.plist
drwxr-xr-x   4 myname  myrole      136 Aug 13 20:46 Modules
-rwxr-xr-x   1 myname  myrole  6480052 Aug 13 20:46 RxBluetoothKit

Version information:

"react": "16.0.0-alpha.12",
"react-native": "^0.46.1",
"react-native-ble-plx": "^0.6.1",
XCode: 8.3.3 (8E3004b)

Same issue

@nickvido did you ever figure it out?

@nickvido I fixed that problem by using an absolute path for RxBluetoothKit.framework

I get the same error as well, but on Carthage/Build/iOS/RxSwift.framework. If I hard code input files in Run Script like @nisargap does I do not get the error. Folder exists.

xcode Version 9.1 (9B55)
[email protected]
[email protected]
[email protected]
carthage version 0.26.2

image

FWIW I also ran into issue on Xcode v9.0. I've tried cleaning project (cmd+opt+shift+k) no use.

@Cierpliwy any idea what is going wrong? Hard code kills team development.

I ended up scrapping the whole thing and re-creating the app using react-native init instead of create-react-native-app. I also switched to just using the react-native-ble-manager package that this package references.

@nickvido thanks. Curious, where do you see react-native-ble-manager referenced to in this project? I dont see it in package.json and don't find any codehits. Just wondering what the diff is between this project and react-native-ble-manager.

The other piece of info I did not mention yesterday, was my project was started with this boilerplate: https://github.com/junedomingo/movieapp so wonder if not starting clean as you mention has something to do with this issue.

@haohcraft Thanks, you save my time!

@rynop @nickvido The issue here actually turned out to be caused by copying these Input Files from the install instructions. It copied a newline character due to the way the md file is formatted. Close inspection of the logs (reading through all the environment variables) revealed this.
@Cierpliwy I think we should place a note warning against this in the install instructions or reformat it to be less likely.

I had this issue because i denied keychain access

Was this page helpful?
0 / 5 - 0 ratings