简体   繁体   English

摆脱ios模拟器中的代理弹出窗口

[英]Get rid of proxy popup in ios simulator

I'm behind a corporate firewall and all network traffic goes thru the main proxy. 我在企业防火墙后面,所有网络流量都通过主代理。 In my iOS simulator, I get proxy popups a few times each time I run my app. 在我的iOS模拟器中,每次运行我的应用程序时,我都会获得几次代理弹出窗口。 The thing is, my app doesn't make any network calls (yet), and doesn't import any network frameworks. 问题是,我的应用程序尚未进行任何网络调用,并且不会导入任何网络框架。 In fact, I can reproduce this by making a new project in XCode using one of the standard templates and run it straight away; 事实上,我可以通过使用其中一个标准模板在XCode中创建一个新项目并立即运行来重现这一点。 it'll still prompt for the proxy credentials every time. 它每次都会提示代理凭据。

In my OSX network settings, I've obviously set my proxy credentials in all the different protocols (HTTP, HTTPS, FTP, Socks, RTSP, Gopher). 在我的OSX网络设置中,我显然在所有不同的协议(HTTP,HTTPS,FTP,Socks,RTSP,Gopher)中设置了我的代理凭据。 I found that I needed to put the domain and backslash before my username to allow web access in any OSX browsers etc...so given that I did that and then the OSX proxy prompts went away and I was allowed access, I would have thought that the iOS simulator would just inherit those settings...? 我发现我需要在我的用户名之前放置域名和反斜杠,以允许在任何OSX浏览器中访问Web等...所以考虑到我这样做,然后OSX代理提示消失了,我被允许访问,我会想到iOS模拟器只会继承这些设置......?

Any ideas? 有任何想法吗?

One more bit which may be unrelated: we haven't yet figured out how to get access to the App Store on this Mac; 还有一点可能是不相关的:我们还没有弄清楚如何在这台Mac上访问App Store; despite supposedly getting past the proxy, any use of the App Store just results in timeouts and we can't even see the "home page". 尽管据说通过代理,任何使用App Store只会导致超时,我们甚至无法看到“主页”。 I'm wondering if somehow the iOS simulator is making similar network calls using some other protocol that is like the App Store...? 我想知道iOS模拟器是否正在使用类似App Store的其他协议进行类似的网络调用......? (I would have thought App Store would have been HTTPS but I don't know). (我原以为App Store本来就是HTTPS,但我不知道)。

Any thoughts appreciated. 任何想法都赞赏。

If you put *.apple.com in your proxy passthrough list, the simulator will stop whining about it. 如果您将* .apple.com放入代理直通列表中,模拟器将不再抱怨它。

Like you, I can't get the Apple Store to work through our corporate proxy either. 和你一样,我也无法让Apple Store通过我们的公司代理工作。 I've worked around it by using a wireless network that doesn't use a proxy when I have to use the App Store. 当我不得不使用App Store时,我使用了一个不使用代理的无线网络来解决这个问题。

I've found plenty of other things in the OS that don't work through our proxy. 我发现操作系统中有很多其他东西无法通过我们的代理工作。

I had the same issue and found another way without touching the proxy settings ! 我有同样的问题,发现另一种方式没有触及代理设置

I'm working on a Mac with OSX-El Capitan so maybe in other versions these steps might be slightly different: 我正在使用OSX-El Capitan在Mac上工作,所以在其他版本中这些步骤可能略有不同:

  • Go to System Preferences 转到系统偏好设置
  • Go to Network 转到网络
  • Choose your connection (Wireless/Ethernet/Thunderbolt-Ethernet) 选择您的连接(无线/以太网/ Thunderbolt以太网)
  • Click on Advanced Options 单击“ 高级选项”
  • Go to the tab Proxies 转到选项卡代理
  • The two boxes Automatically detect proxy (for the internet connection on your mac) and Web-Proxy (HTTP) 两个框自动检测代理 (用于Mac上的Internet连接)和Web代理(HTTP)
  • Insert your login credentials at Web-Proxy (HTTP) . Web代理(HTTP)中插入登录凭据。

This reduced the occurence of the Proxy-PopUp greatly on all the 3 macs I work with. 这在我使用的所有3个mac上大大减少了Proxy-PopUp的出现。 (At least it doesn't appear periodically anymore when I start my app from xcode) (当我从xcode启动我的应用程序时,至少它不再定期出现)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM