XCode 6 Simulator ignores hosts file changes

前端 未结 2 1378
旧时难觅i
旧时难觅i 2020-12-31 12:16

I have a client-server App, in order to test it with Simulator I have a server on a virtual machine and I change mac\'s hosts file (/etc/hosts) so I can get there.

I

2条回答
  •  臣服心动
    2020-12-31 13:06

    Have you tried flushing the DNS cache with the command

    sudo dscacheutil -flushcache
    

    before quitting and relaunching the iOS Simulator ?

提交回复
热议问题