iPhone HTTP server works on simulator but not on iPhone device
问题 I want to embed a webserver in an iPhone app so as to download files from application's document directory. I am using iPhone Http Server. Everything works fine on iPhone simulator. Even I am able to get files using http://: or localhost:. But on device I am not able to connect. Safari says: "Cannot open page". Even http://iphone.local: doest not work on same device as app is installed. Please suggest. 回答1: Your app goes into background, doesn't it? I think you use Mac's Safari when you try