I installed it from react-native official site as below. (node.js and openJDK were installed differently)
Version information
XCode Preferences
Locations > Command Line Tools: Xcode 11.0 (11A420a)
Components > Simulator: iOS 12.2, iOS 12.1, iOS 11.1, iOS 11.0
Changed the configuration from podfile to platform: ios, '9.0'
to platform: ios, '11.0 '
.
code execute
react-native init rntest
react-native run-ios
(I don't see an app icon to launch.)
watchman error message
Watchman: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2019-10-03T03:19:20,686: [cli] unable to talk to your watchman on /usr/local/var/run/watchman/myname-state/sock! (No such file or directory)
What should I do to run react-native's initial app?
Do you have watchman installed properly? What happens when you run watchman --foreground --logfile=/dev/stdout
Please try entering the following command:
chmod 0700 /usr/local/var/run/watchman/yourname-state
Don't forget to change the "yourname" to your user name or whatever you have it there!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.