Command /bin/sh failed with exit code 1 - After upgrading reactnative to 0.15.0 and NPM to 3.3.6
I can no longer compile in Xcode after upgrading React Native to 0.15.0 and NPM to 3.3.6. When I compile Xcode throws an error saying "Command /bin/sh failed with exit code 1".
Forgive me if this has been covered elsewhere.
Hey vinu123, thanks for reporting this issue!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
- If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
- If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag
react-nativeor for more real time interactions, ask on Discord in the #react-native channel. - We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!
Having the same issue.. I really wish this can be fixed. also there is lot of dups of this issue ( https://github.com/facebook/react-native/issues/3948 )
I have similar or same issue, after trying to create new project
++ export MANPATH
++ export PATH
++ hash -r
++ export NVM_PATH=/Users/null/.nvm/versions/node/v4.2.1/lib/node
++ NVM_PATH=/Users/null/.nvm/versions/node/v4.2.1/lib/node
++ export NVM_BIN=/Users/null/.nvm/versions/node/v4.2.1/bin
++ NVM_BIN=/Users/null/.nvm/versions/node/v4.2.1/bin
++ '[' '' = true ']'
++ nvm_is_iojs_version v4.2.1
+++ echo v4.2.1
+++ cut -c1-5
++ '[' _v4.2. = _iojs- ']'
++ echo 'Now using node v4.2.1'
+ react-native bundle --entry-file index.ios.js --platform ios --dev true --bundle-output /Users/null/Library/Developer/Xcode/DerivedData/PredictClient-gninzjqnjlmrdgemcxrwgqfknfnl/Build/Products/Debug-iphonesimulator/PredictClient.app/main.jsbundle --assets-dest /Users/null/Library/Developer/Xcode/DerivedData/PredictClient-gninzjqnjlmrdgemcxrwgqfknfnl/Build/Products/Debug-iphonesimulator/PredictClient.app
bundle: Created ReactPackager
uncaught error Error: SyntaxError: /Users/null/dev/TestApp/node_modules/react-native/Libraries/ReactNative/ReactNative.js: Line 74: Unsupported type annotation type: FunctionTypeAnnotation
72 | };
73 |
> 74 | var render = function(
| ^
75 | element: ReactElement,
76 | mountInto: number,
77 | callback?: ?(() => void)
at File.errorWithNode (/Users/null/dev/TestApp/node_modules/react-native/node_modules/babel-core/lib/transformation/file/index.js:489:13)
at NodePath.errorWithNode (/Users/null/dev/TestApp/node_modules/react-native/node_modules/babel-core/lib/traversal/path/index.js:155:26)
at NodePath.Function (/Users/null/dev/TestApp/babel-plugin-typecheck/lib/index.js:48:22)
at NodePath.call (/Users/null/dev/TestApp/node_modules/react-native/node_modules/babel-core/lib/traversal/path/context.js:56:28)
at NodePath.visit (/Users/null/dev/TestApp/node_modules/react-n
Command /bin/sh failed with exit code 1
It seems to be fixed in 0.16-rc - https://github.com/facebook/react-native/commit/9a64f17de84e50a4fc60f1b96168aa61925934a8