{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/8737","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/8737/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/8737/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/8737/events","html_url":"https://github.com/facebook/react-native/issues/8737","id":165292118,"number":8737,"title":"How do you run on a physical device as of rn 0.29? ...with Reload JS working","user":{"login":"npomfret","id":5489469,"avatar_url":"https://avatars.githubusercontent.com/u/5489469?v=3","gravatar_id":"","url":"https://api.github.com/users/npomfret","html_url":"https://github.com/npomfret","followers_url":"https://api.github.com/users/npomfret/followers","following_url":"https://api.github.com/users/npomfret/following{/other_user}","gists_url":"https://api.github.com/users/npomfret/gists{/gist_id}","starred_url":"https://api.github.com/users/npomfret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npomfret/subscriptions","organizations_url":"https://api.github.com/users/npomfret/orgs","repos_url":"https://api.github.com/users/npomfret/repos","events_url":"https://api.github.com/users/npomfret/events{/privacy}","received_events_url":"https://api.github.com/users/npomfret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-13T10:50:09Z","updated_at":"2016-07-14T09:29:04Z","closed_at":null,"body":"I can no longer run in a physical device, I just get `Could not connect to development server`.  The [docs](https://facebook.github.io/react-native/docs/running-on-device-ios.html) seem to be quite out of date.\r\n\r\nQuestions:\r\n\r\nWhat do I put in my `AppDelegate.m`?  It used to looks like this (modified from the original to allow me to access my dev server from a physical device):\r\n\r\n```\r\n  #ifdef DEBUG\r\n    jsCodeLocation = [NSURL URLWithString:@\"http://<my-ip-address>:8081/index.ios.bundle?platform=ios&dev=true\"];\r\n  #else\r\n    jsCodeLocation = [[NSBundle mainBundle] URLForResource:@\"main\" withExtension:@\"jsbundle\"];\r\n  #endif\r\n\r\n```\r\nBut since the upgrade its changed to this:\r\n\r\n`jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@\"index.ios\" fallbackResource:nil];`\r\n\r\nIf i don't make any changes I can run on a physical device, but _Reload JS_ doesn't work.  Is it possible to load js code on the fly as before?\r\n\r\nWhat do I put in my `Info.plist` file for _NSAppTransportSecurity_ ?  The default settings are now:\r\n\r\n```\r\n\t<key>NSAppTransportSecurity</key>\r\n\t<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->\r\n\t<dict>\r\n\t\t<key>NSExceptionDomains</key>\r\n\t\t<dict>\r\n\t\t\t<key>localhost</key>\r\n\t\t\t<dict>\r\n\t\t\t\t<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>\r\n\t\t\t\t<true/>\r\n\t\t\t</dict>\r\n\t\t</dict>\r\n\t</dict>\r\n```\r\n\r\nTried changing _localhost_ to my `<my-ip-address>` but it doesn't seem to work.\r\n\r\nIs there a configuration that allows my to test both a physical device and a simulator without having to change code each time? "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/232614553","html_url":"https://github.com/facebook/react-native/issues/8737#issuecomment-232614553","issue_url":"https://api.github.com/repos/facebook/react-native/issues/8737","id":232614553,"user":{"login":"ide","id":379606,"avatar_url":"https://avatars.githubusercontent.com/u/379606?v=3","gravatar_id":"","url":"https://api.github.com/users/ide","html_url":"https://github.com/ide","followers_url":"https://api.github.com/users/ide/followers","following_url":"https://api.github.com/users/ide/following{/other_user}","gists_url":"https://api.github.com/users/ide/gists{/gist_id}","starred_url":"https://api.github.com/users/ide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ide/subscriptions","organizations_url":"https://api.github.com/users/ide/orgs","repos_url":"https://api.github.com/users/ide/repos","events_url":"https://api.github.com/users/ide/events{/privacy}","received_events_url":"https://api.github.com/users/ide/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T09:29:04Z","updated_at":"2016-07-14T09:29:04Z","body":"AFAIK the packager server URL hasn't changed so the old URL should work (visit it in your browser as a sanity check)."}}
{"actor":{"display_login":"ide"}}