NSURLSession returns data as Null on Watch OS2 using Objective-C

前端 未结 2 485
予麋鹿
予麋鹿 2021-01-20 02:26

This works perfectly on iPhone (Simlulator and Device) but on Watch OS2 i get blank data. What might be the issue with this ?

NSURLSession *session = [NSURLS         


        
2条回答
  •  暖寄归人
    2021-01-20 02:43

    Sorry found the mistake. Had to add Allows Arbitrary Loads on the WatchKit extension. After adding i got the result.

提交回复
热议问题