NSCocoaErrorDomain Code=256

前端 未结 7 948
太阳男子
太阳男子 2020-12-01 20:59

I have been stuck with this for a while and don\'t seem to get around this.

I am trying to read the contents of an URL as a string from an URL, But i get a weird

7条回答
  •  长情又很酷
    2020-12-01 21:29

    I got the same error, the above solution didn't work for me, in my case i was calling dataWithContentsOfURL from within a UNNotificationServiceExtension so i had to update the info.plist file of the UNNotificationServiceExtension with the app transport security entries.

提交回复
热议问题