Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default server URL is wrong; Typo in AppDelegate #46

Closed
CrabDude opened this issue Jan 25, 2016 · 1 comment
Closed

Default server URL is wrong; Typo in AppDelegate #46

CrabDude opened this issue Jan 25, 2016 · 1 comment

Comments

@CrabDude
Copy link

See #45 for more background on reproducing the error.

In AppDelegate.m, the default development server URL is invalid:

// Run bundle depending on DEBUG flag
    #ifdef DEBUG
       jsCodeLocation = [NSURL URLWithString:@"http://localhosts/index.ios.bundle?platform=ios&dev=true"];

And results in the the following error on app load:

Could not connect to development server.

Ensure the following:
- Node Server is running and available on the same network - run 'npm start' from react-native root
- Node server URL is correctly set in AppDelegate

URL: http://localhosts/index.ios.bundle?platform=ios&dev=true

Steps to resolve: Update localhosts to localhost:8081 as used elsewhere AppDelegate.m:

jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
@CrabDude
Copy link
Author

It seems I was running an older version and was resolved in this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant