react native cmd+R cmd+D Shake Gesture doesn't work not refreshing
when I edit the js file and hit Cmd-R in the simulator, nothing happens. It was work fine by yesterday. I don't kown what happened. I try to restart , full install every software. It doesn't work . My simulator Hardware > Shake Gesture doesn't work too. I try http://facebook.github.io/react-native/docs/troubleshooting.html#content and https://github.com/facebook/react-native/issues/306 methods , not work. I think does the watchman is not connection in my simulator. How can I fix it ?
xcode - Version 6.4 (6E35b) simulator - Version 8.4 watchman - 3.3.0 node - 0.12.7
Try command + shift + T. Your keyboard might be disabled.
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/xcode_help-command_shortcuts/MenuCommands/MenuCommands014.html
JG
:: sent from my mobile device ::
On Jul 27, 2015, at 05:40, chunecai [email protected] wrote:
when I edit the js file and hit Cmd-R in the simulator, nothing happens. It was work fine by yesterday. I don't kown what happened. I try to restart , full install every software. It doesn't work . My simulator Hardware > Shake Gesture doesn't work too. I try http://facebook.github.io/react-native/docs/troubleshooting.html#content and #306 methods , not work. I think does the watchman is not connection in my simulator. How can I fix it ?
xcode - Version 6.4 (6E35b) simulator - Version 8.4 watchman - 3.3.0 node - 0.12.7
— Reply to this email directly or view it on GitHub.
@jaygarcia I tried . don't work. All the same. My keyboard could input the word . It connected to the simulator. How can I make sure the watchman was working on the simulator?
Your bundle server might not be running. That server is what should connect to watchman. Does Xcode launch a server in your terminal when you run your app?
Do you see any errors in Xcode or the simulator?
@ericvicenti When I run my app, there is no error, in my Xcode or on the simulator. My app was work fine . Just when I modify my js file , hit cmd+R ,the simulator doesn't work,not refreshing. I couldn't see any error. Just not response.
Does the server run? (A terminal window should appear when you press run in Xcode)
@ericvicenti yes, ofcourse. The server was running. When I modified the js file , request the index.ios.bundle, At the terminal console i could see the change.
[09:39:13]
Just not working refreshing in my simulator.
@ericvicenti Also I make sure the watchman was working . In my terminal console , i run the command " ps -ef|grep watchman" , I could see the process code .
501 35782 1 0 5:16下午 ?? 0:11.62 /usr/local/bin/watchman --foreground --logfile=/usr/local/Cellar/watchman/3.3.0/var/run/watchman/cici.log --log-level=1 --sockname=/usr/local/Cellar/watchman/3.3.0/var/run/watchman/cici --statefile=/usr/local/Cellar/watchman/3.3.0/var/run/watchman/cici.state 501 38147 33348 0 9:35上午 ttys001 0:00.01 grep watchman
@chunecai when the simulator is active, can you go to the top menu and choose Hardware -> Shake Gesture? This should pop up a menu with a button that says Reload. If this works for you, then I believe there is a problem with your computer's keyboard configuration.
@ide It doesn't work . When I choose Hardware -> Shake Gesture , It was not pop anything .
@ide I saw my computer's keyboard configuration , It was right , It was QWERTY keyboard .
This is very strange... are you running the app in RELEASE mode maybe? The menu is enabled only in DEBUG mode.
@ide Think you so much . It was this problem . One day I packaged this app to my iphone . Modified this configuration .
Now cmd+R and cmd+D was working .
fixed: xcode-->product-->Scheme-->Edit Scheme -->Run -->Build Configuration -->Debug
@jaygarcia @ericvicenti Thinks every one . Have a good day.
awesome. #winning
Happy coding...
Great!! saved me too :P Thanks to @ide
@chunecai thank you. You saved me a load of time!
Can this fix please be added to https://facebook.github.io/react-native/docs/troubleshooting.html ? Those list of fixes are very good, and I believe this should be noted as well. Thanks, and Happy New Year everyone.
This might be a bit stack overflow-ish but I ran into the same problem.
My keyboard was disabled as @jaygarcia mentioned, but for some reason my hotkey is mapped to command + shift + K, not command + shift + T
From the simulator check "Hardware > Keyboard" and make sure "Connect Hardware Keyboard" is enabled.
@MTen Think you so much.Hava a nice day
I just update to RN0.43,and found that command + R work while command + D not work,anyone can help?
check the pod i use, found that I haven't imort 'DevSupport', so I can't use command + D to debug.