File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ id : troubleshooting
3+ title : Troubleshooting
4+ layout : docs
5+ category : Quick Start
6+ permalink : docs/troubleshooting.html
7+ ---
8+
9+ ## Cmd-R does not reload the simulator
10+ Enable iOS simulator's "Connect hardware keyboard" from menu Hardware > Keyboard menu.
11+
12+ ![ Keyboard Menu] ( https://cloud.githubusercontent.com/assets/1388454/6863127/03837824-d409-11e4-9251-e05bd31d978f.png )
13+
14+
15+ 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"
16+
17+ ## Port already in use red-screen
18+ ![ red-screen] ( https://cloud.githubusercontent.com/assets/602176/6857442/63fd4f0a-d3cc-11e4-871f-875b0c784611.png )
19+
20+
21+ Something is probably already running on port 8081. You can either kill it or try to change which port the packager is listening to.
22+
23+ ### Kill process on port 8081
24+ ` $ sudo lsof -n -i4TCP:8081 | grep LISTEN `
25+
26+ then
27+
28+ ` $ kill -9 <cma process id> `
29+
30+
31+
32+ ### Change the port in Xcode
33+ Edit ` AppDelegate.m ` to use a different port.
34+ ```
35+ // OPTION 1
36+ // Load from development server. Start the server from the repository root:
37+ //
38+ // $ npm start
39+ //
40+ // To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
41+ // iOS device are on the same Wi-Fi network.
42+ jsCodeLocation = [NSURL URLWithString:@"http://localhost:9381/index.ios.bundle"];
43+ ```
You can’t perform that action at this time.
0 commit comments