{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/4362","labels_url":"https://api.github.com/repos/facebook/react-native/issues/4362/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4362/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/4362/events","html_url":"https://github.com/facebook/react-native/issues/4362","id":118973669,"number":4362,"title":"Handling different XCode Configurations","user":{"login":"bleonard","id":36106,"avatar_url":"https://avatars.githubusercontent.com/u/36106?v=3","gravatar_id":"","url":"https://api.github.com/users/bleonard","html_url":"https://github.com/bleonard","followers_url":"https://api.github.com/users/bleonard/followers","following_url":"https://api.github.com/users/bleonard/following{/other_user}","gists_url":"https://api.github.com/users/bleonard/gists{/gist_id}","starred_url":"https://api.github.com/users/bleonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleonard/subscriptions","organizations_url":"https://api.github.com/users/bleonard/orgs","repos_url":"https://api.github.com/users/bleonard/repos","events_url":"https://api.github.com/users/bleonard/events{/privacy}","received_events_url":"https://api.github.com/users/bleonard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"frantic","id":192222,"avatar_url":"https://avatars.githubusercontent.com/u/192222?v=3","gravatar_id":"","url":"https://api.github.com/users/frantic","html_url":"https://github.com/frantic","followers_url":"https://api.github.com/users/frantic/followers","following_url":"https://api.github.com/users/frantic/following{/other_user}","gists_url":"https://api.github.com/users/frantic/gists{/gist_id}","starred_url":"https://api.github.com/users/frantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frantic/subscriptions","organizations_url":"https://api.github.com/users/frantic/orgs","repos_url":"https://api.github.com/users/frantic/repos","events_url":"https://api.github.com/users/frantic/events{/privacy}","received_events_url":"https://api.github.com/users/frantic/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-26T05:17:19Z","updated_at":"2015-11-26T13:32:23Z","closed_at":null,"body":"Currently the [react-native-xcode.sh command](https://github.com/facebook/react-native/blob/9a64f17de84e50a4fc60f1b96168aa61925934a8/packager/react-native-xcode.sh) crashes when the `$CONFIGURATION` is anything but `Release` or `Debug`.\r\n\r\nThere are reasons why we have a configuration for `Staging`. All Xcode projects treat this as the default (usually Release). Your goals seems to be to set `DEV` to true or false. I would suggest doing an else case to false.\r\n\r\nIf you also want to throw an error if not running in XCode, it seems like just haveing `$CONFIGURATION` (or a few more) would be sufficient.\r\n\r\nHere is the code in my project (Build Phase) that is currently working around this for those interested.\r\n\r\n```\r\nif [ \"${CONFIGURATION}\" == \"Debug\" ]\r\nthen\r\nBUNDLECONFIG=Debug\r\nelse\r\nBUNDLECONFIG=Release\r\nfi\r\n\r\nCONFIGURATION=$BUNDLECONFIG ../node_modules/react-native/packager/react-native-xcode.sh\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/159913386","html_url":"https://github.com/facebook/react-native/issues/4362#issuecomment-159913386","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4362","id":159913386,"user":{"login":"grabbou","id":2464966,"avatar_url":"https://avatars.githubusercontent.com/u/2464966?v=3","gravatar_id":"","url":"https://api.github.com/users/grabbou","html_url":"https://github.com/grabbou","followers_url":"https://api.github.com/users/grabbou/followers","following_url":"https://api.github.com/users/grabbou/following{/other_user}","gists_url":"https://api.github.com/users/grabbou/gists{/gist_id}","starred_url":"https://api.github.com/users/grabbou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grabbou/subscriptions","organizations_url":"https://api.github.com/users/grabbou/orgs","repos_url":"https://api.github.com/users/grabbou/repos","events_url":"https://api.github.com/users/grabbou/events{/privacy}","received_events_url":"https://api.github.com/users/grabbou/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T13:32:23Z","updated_at":"2015-11-26T13:32:23Z","body":"I think it could play well with rn-cli.config.js and e.g. method `getConfiguration(xCodeRelease)` for instance."}}