OSURL应用程序上的NSURLSession/NSURLConnection HTTP加载失败 [英] NSURLSession/NSURLConnection HTTP load failed on OSX app
问题描述
我正在测试OSX应用程序,该应用程序可以获取远程服务器链接,例如 https://www.google-analytics. com/collect .
i am testing OSX application that fetch remote server links like https://www.google-analytics.com/collect.
I have found many questions about that but can't find match answer for that .The error i am getting are
NSURLSession/NSURLConnection HTTP加载失败 错误域= NSPOSIXErrorDomain代码= 1不允许操作" UserInfo = {_ kCFStreamErrorCodeKey = 1,_kCFStreamErrorDomainKey = 1}
NSURLSession/NSURLConnection HTTP load failed Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_kCFStreamErrorCodeKey=1, _kCFStreamErrorDomainKey=1}
App use "APP SANDBOX" with "com.apple.security.network.server" set to true , all normal http links are working except secure https links.
NSAllowsArbitraryLoads也设置为true.
NSAllowsArbitraryLoads set to true as well.
What i found so far is if APP PROJECT is turn on "ENABLE DEVELOPER SIGNING" , it doesn't work.
但是如果APP PROJECT关闭了"DEVELOPER SIGNING",它就可以工作.
However if APP PROJECT is turn off "DEVELOPER SIGNING" , it work.
有什么想法,怎么解决?
Any idea what it could be and how to solve?
关于, 约翰
推荐答案
我已经找到原因, 我在此处回答了问题
I already found out why, I answered the question here
从技术上讲,您需要检查
Technically you need to check the
外向连接
来自 Capabilities> App Sanbox
这篇关于OSURL应用程序上的NSURLSession/NSURLConnection HTTP加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!