IPhone 6 or can not find other simulators (Could not find iPhone 6 simulator)
stackoverflow
probably because the simulator version of the current system is as follows: the
com.apple.CoreSimulator.SimRuntime.watchOS-5-0
com.apple.CoreSimulator.SimRuntime.tvOS-12-1
com.apple.CoreSimulator.SimRuntime.tvOS-12-2
In the actual code node_modules/react-native/local-cli/runIOS/findMatchingSimulator.js
in line 29 will determine the version is not iOS
the beginning of the - , it version.indexOf('iOS') !== 0
is recommended to add a source file console
to view the next is not the problem. If so, under the modified source code will version.indexOf('iOS') !== 0
be changed !version.includes('iOS')
to.
glog config.h not found
StackOverflow
GLog version is glog-0.3.4, as long as you can execute the following command:
cd node_modules/react-native/third-party/glog-0.3.4
sh ../../scripts/ios-configure-glog.sh
run
Local can be used react-native run-ios
, it can also be run manually by xcode official or otherwise. The benefits of using xcode is running you can see the build log format. The command line to run the log is no format, there is no build progress display. In addition, when the first run will download a lot of dependence on the command-line point of view will be very confused.