【发布时间】:2017-04-15 17:02:01
【问题描述】:
我在/etc/hosts 文件中添加了一个新条目,但它没有反映在 IOS 模拟器中。我正在使用 OS X El Capitan。这是我的主机文件
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
192.168.10.10 homestead.app
我可以从模拟器的 Safari 网络浏览器访问homestead.app,但我无法从我的react-native 应用程序访问。我试过重启模拟器,重启Mac,重置模拟器设置,但还是不行。
【问题讨论】:
标签: ios react-native ios-simulator