iOS 9:从URL加载图像时出现错误Domain=nscocaerorrordomain Code=256

iOS 9:从URL加载图像时出现错误Domain=nscocaerorrordomain Code=256,ios,objective-c,ios9,app-transport-security,Ios,Objective C,Ios9,App Transport Security,我的应用程序中有两个目标,在iOS 9更新之前,应用程序运行良好 突然间,图像加载开始出错 Error Domain=NSCocoaErrorDomain Code=256 "The file “linkimagehandler.ashx” couldn’t be opened." UserInfo={NSURL=http:la ..blw…RiS823e11rnf6dWjLasnjmiTYQpdDP+ZTekhIWBYx1PQfIUSDVJMT4dxE6VZ7YybIDRav0jKRLFa}

我的应用程序中有两个目标,在iOS 9更新之前,应用程序运行良好

突然间,图像加载开始出错

Error Domain=NSCocoaErrorDomain Code=256 "The file “linkimagehandler.ashx” couldn’t be opened." UserInfo={NSURL=http:la ..blw…RiS823e11rnf6dWjLasnjmiTYQpdDP+ZTekhIWBYx1PQfIUSDVJMT4dxE6VZ7YybIDRav0jKRLFa}
通过搜索,我了解了iOS 9中新的网络访问安全性

我得到了在两个plist文件中添加以下内容以绕过的线索:

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict> 
NSAppTransportSecurity
NSAllowsArbitraryLoads
这解决了我在几个月前添加的target的问题。 但我仍然在目标中面临同样的问题,该目标是在大约10个月前与项目一起制定的

我在这里遗漏了什么

请导游


谢谢大家!

请求此文件的调用方法是什么?@Niko我认为调用请求不是问题,因为图像在另一个目标中加载良好。我在消息“UserInfo={NSURL=http:la..blw”中看到,url是否没有http://前缀?@Niko这是完整的url“”