PAC 提取失败,错误为 [NSURLErrorDomain:-1003] [英] PAC Fetch failed with error [NSURLErrorDomain:-1003]

查看:92
本文介绍了PAC 提取失败,错误为 [NSURLErrorDomain:-1003]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在日志中看到了这个错误,但我不知道它意味着什么:

I see this error in my logs and I don't know what it means:

PAC Fetch failed with error [NSURLErrorDomain:-1003]
2017-06-08 17:07:56.157874+0200 xxxxxx[27059:7093559] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003

与此同时,我的应用程序中的 collectionView 有问题.不知道是否与错误有关:

At the same time I have a problem with a collectionView in my app. Don't know if it's related to the error or not:

有时,并且只有在我们公司的一个远程办公室中使用该应用程序时,无论是模拟器还是真实设备,一个仅接收图像数组并将它们显示在屏幕上的 collectionView 才会停止工作.

Sometimes, and only if the app is used in one remote office of our Company, both with the simulator and a real device, a collectionView that simply receives an images array and show them on the screen, just stops working.

它不像只是加载图像,它似乎没有显示整个 collectionView.

It's not like it didn't just load the images, it seems like the entire collectionView doesn't show up.

我正在另一个办公室(另一个城市)用模拟器和设备测试同一个应用程序,但从来没有发生在我身上.除了PAC"错误之外,我只看到一些自动布局约束问题,但我在日志中看到了相同的错误,但它仍然可以完美运行.

I'm testing the same app with simulators and devices in another office (another city) and it NEVER happened to me. Other that that "PAC" error, I only see some auto layout constraint problems, but I see the same errors in my logs and it still works perfectly.

在远程位置测试该应用程序的人员表示,他们必须删除并重新安装该应用程序才能使其再次运行.

The persons that are testing the app on the remote location say that they have to remove and reinstall the app to make it work again.

有什么线索吗?

推荐答案

有一个类似的问题通过这个方法解决了.希望这可以帮助.模拟器使用您的计算机网络连接,因此我建议检查系统偏好设置 > 网络 > 高级 > 代理 > 自动代理配置:您必须禁用自动代理发现.

Had a similar problem fixed it by this method. Hope this helps. The simulator uses your computers network connection, so I recommend checking the System Preferences > Network > Advanced > Proxies > Automatic Proxy Configuration : You must disable Auto Proxy Discovery.

这篇关于PAC 提取失败,错误为 [NSURLErrorDomain:-1003]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆