{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/9677","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/9677/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/9677/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/9677/events","html_url":"https://github.com/facebook/react-native/issues/9677","id":174184968,"number":9677,"title":"Run shell script failed when I use Xcode to build project with release deployment.","user":{"login":"niyaoyao","id":18592756,"avatar_url":"https://avatars.githubusercontent.com/u/18592756?v=3","gravatar_id":"","url":"https://api.github.com/users/niyaoyao","html_url":"https://github.com/niyaoyao","followers_url":"https://api.github.com/users/niyaoyao/followers","following_url":"https://api.github.com/users/niyaoyao/following{/other_user}","gists_url":"https://api.github.com/users/niyaoyao/gists{/gist_id}","starred_url":"https://api.github.com/users/niyaoyao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niyaoyao/subscriptions","organizations_url":"https://api.github.com/users/niyaoyao/orgs","repos_url":"https://api.github.com/users/niyaoyao/repos","events_url":"https://api.github.com/users/niyaoyao/events{/privacy}","received_events_url":"https://api.github.com/users/niyaoyao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-31T05:02:06Z","updated_at":"2016-09-06T04:16:17Z","closed_at":null,"body":"### Issue Description\r\n\r\nThe log of error when build project looks like below.\r\n\r\n+ node /Users/niyao/Company/Projects/EVE/EVERN/node_modules/react-native/local-cli/cli.js bundle --entry-file index.ios.js --platform ios --dev false --reset-cache --bundle-output /Users/niyao/Library/Developer/Xcode/DerivedData/EVE-bzggtbnrxixkvwgqyewmpxepvljo/Build/Products/Release-iphonesimulator/EVE.app/main.jsbundle --assets-dest /Users/niyao/Library/Developer/Xcode/DerivedData/EVE-bzggtbnrxixkvwgqyewmpxepvljo/Build/Products/Release-iphonesimulator/EVE.app\r\n\r\nfs.js:584\r\n  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);\r\n\r\nError: ENOENT: no such file or directory, open 'package.json'\r\n\r\n### Error Scenario\r\nAfter I use package.json as below to ```npm install``` new version, the error happens within release deployment scheme.\r\n\r\n```\r\n{\r\n  \"name\": \"NYProject\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"scripts\": {\r\n    \"start\": \"node node_modules/react-native/local-cli/cli.js start\",\r\n    \"lint\": \"./node_modules/eslint/bin/eslint.js index.ios.js index.android.js react/\",\r\n    \"watch\": \"npm-watch\"\r\n  },\r\n  \"watch\": {\r\n    \"lint\": {\r\n      \"patterns\": [\r\n        \"react\",\r\n        \"index.ios.js\",\r\n        \"index.android.js\"\r\n      ],\r\n      \"extensions\": \"js\",\r\n      \"ignore\": \".node_modules\",\r\n      \"quiet\": false\r\n    }\r\n  },\r\n  \"dependencies\": {\r\n    \"react\": \"15.3.1\",\r\n    \"react-native\": \"^0.32.0\",\r\n    \"react-redux\": \"^4.4.5\",\r\n    \"redux\": \"^3.5.2\",\r\n    \"redux-logger\": \"^2.6.1\",\r\n    \"redux-thunk\": \"^2.1.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-eslint\": \"^6.1.2\",\r\n    \"eslint\": \"^3.3.1\",\r\n    \"eslint-plugin-react\": \"^6.1.2\",\r\n    \"eslint-plugin-react-native\": \"^2.0.0\",\r\n    \"npm-watch\": \"^0.1.6\"\r\n  }\r\n}\r\n```\r\n\r\nThe shell runs failed when build project within ***Release*** build configuration.\r\n\r\n```\r\n\"./NYProject/node_modules/react-native/packager/react-native-xcode.sh\"\r\n```\r\n\r\n\r\n#### Expected Results\r\n\r\nXcode could run shell when build the project. Before I upgrade the package.json configuration, it did run successfully.\r\n\r\n### Additional Information\r\n\r\n* React Native version: \r\nreact-native-cli: 0.2.0\r\nreact-native: 0.32.0\r\n* Platform(s) (iOS, Android, or both?): \r\nXcode 7.3.1 iOS \r\n* Operating System (macOS, Linux, or Windows?): \r\nOS X 10.11\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/244845982","html_url":"https://github.com/facebook/react-native/issues/9677#issuecomment-244845982","issue_url":"https://api.github.com/repos/facebook/react-native/issues/9677","id":244845982,"user":{"login":"niyaoyao","id":18592756,"avatar_url":"https://avatars.githubusercontent.com/u/18592756?v=3","gravatar_id":"","url":"https://api.github.com/users/niyaoyao","html_url":"https://github.com/niyaoyao","followers_url":"https://api.github.com/users/niyaoyao/followers","following_url":"https://api.github.com/users/niyaoyao/following{/other_user}","gists_url":"https://api.github.com/users/niyaoyao/gists{/gist_id}","starred_url":"https://api.github.com/users/niyaoyao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niyaoyao/subscriptions","organizations_url":"https://api.github.com/users/niyaoyao/orgs","repos_url":"https://api.github.com/users/niyaoyao/repos","events_url":"https://api.github.com/users/niyaoyao/events{/privacy}","received_events_url":"https://api.github.com/users/niyaoyao/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T04:16:17Z","updated_at":"2016-09-06T04:16:17Z","body":"@chetstone Yes, after upgrading react-native to 0.32 , the error happens.\r\n\r\nActually, the ```NYProject``` of key ```name``` has nothing to do with iOS project. It's just a react module name to create react view.\r\n\r\nI think the most probably reason cause the error is JavaScript dependence library named 'fs.js'. But, I'm not sure."}}
{"actor":{"display_login":"niyaoyao"}}