I'm making a web browser and when I'm connected to a Wi-Fi network everything works fine. When I'm using a 3G connection just from a short 10 minutes of debugging session with his iPhone I found two errors:
我正在制作一个网络浏览器,当我连接到Wi-Fi网络时,一切正常。当我在与他的iPhone进行短短10分钟的调试会话时使用3G连接时,我发现了两个错误:
The code below throws an exception:
下面的代码抛出异常:
[[NSLocale currentLocale] languageCode]
The WKWebView doesn't load anything.
WKWebView不加载任何东西。
There kind of errors occur:
出现了一些错误:
_BSMachError: (os/kern) invalid capability (20)
_BSMachError: (os/kern) invalid name (15)
1 个解决方案
#1
1
I can't comment yet, posting an answer. I find using [NSLocale preferredLanguages]
with recent iOS versions to be more stable. You can read more in this answer. I hope it brings you slightly closer to a solution.
我无法发表评论,发表了答案。我发现使用[NSLocale preferredLanguages]与最近的iOS版本更稳定。您可以在此答案中阅读更多内容。我希望它能让您更接近解决方案。
#1
1
I can't comment yet, posting an answer. I find using [NSLocale preferredLanguages]
with recent iOS versions to be more stable. You can read more in this answer. I hope it brings you slightly closer to a solution.
我无法发表评论,发表了答案。我发现使用[NSLocale preferredLanguages]与最近的iOS版本更稳定。您可以在此答案中阅读更多内容。我希望它能让您更接近解决方案。