forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add recurring issues for troubleshooting
Hopefully alleviates new issues getting created for similar problems. Addresses facebook#257 facebook#304 facebook#306 facebook#326
- Loading branch information
1 parent
64c1143
commit e8a3f44
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
id: troubleshooting | ||
title: Troubleshooting | ||
layout: docs | ||
category: Quick Start | ||
permalink: docs/troubleshooting.html | ||
--- | ||
|
||
## Cmd-R does not reload the simulator | ||
Enable iOS simulator's "Connect hardware keyboard" from menu Hardware > Keyboard menu. | ||
|
||
 | ||
|
||
|
||
If you are using a non-QWERTY/AZERTY keyboard layout you can use the `Hardware > Shake Gesture` to bring up the dev menu and click "Refresh" | ||
|
||
## Port already in use red-screen | ||
 | ||
|
||
|
||
Something is probably already running on port 8081. You can either kill it or try to change which port the packager is listening to. | ||
|
||
### Kill process on port 8081 | ||
`$ sudo lsof -n -i4TCP:8081 | grep LISTEN` | ||
|
||
then | ||
|
||
`$ kill -9 <cma process id>` | ||
|
||
|
||
|
||
### Change the port in Xcode | ||
Edit `AppDelegate.m` to use a different port. | ||
``` | ||
// OPTION 1 | ||
// Load from development server. Start the server from the repository root: | ||
// | ||
// $ npm start | ||
// | ||
// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and | ||
// iOS device are on the same Wi-Fi network. | ||
jsCodeLocation = [NSURL URLWithString:@"http://localhost:9381/index.ios.bundle"]; | ||
``` |