Skip to content

Commit fe44297

Browse files
committed
Merge pull request facebook#347 from tehfailsafe/patch-1
Add Troubleshooting doc for recurring issues
2 parents 60f61e8 + a9b6d6d commit fe44297

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

docs/Troubleshooting.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
```

0 commit comments

Comments
 (0)