0

I have develop one application in which there are so many photos and videos. I have develop this app in xcode6.3 and it will work perfectly but now i have installed new xcode7.1 and when i'm trying to run this app in xcode7.1 it will run perfectly but i haven't seen any videos and images of my app.

Is that any chnage that i have to do in my code or is it any other problem

Tejas Patel
  • 850
  • 10
  • 26

2 Answers2

0

Starting from Xcode7 Apple mandates that all url access should be HTTPS as a part of Apple Transport Security (ATS)

To overcome this you have to add the following item in your app info.plist file enter image description here

ipraba
  • 16,485
  • 4
  • 59
  • 58
0

You can bypass this by adding this key to your info.plist of the project

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

for more details about ATS refer NSURLSession/NSURLConnection HTTP load failed on iOS 9 http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/

Community
  • 1
  • 1
Anshad Rasheed
  • 2,526
  • 1
  • 14
  • 32
  • yes, i have added this but still not working. data loaded successfully only issue is coming with images and videos only. – Tejas Patel Oct 28 '15 at 05:49
  • in what format you are getting media files log the response you are getting and what are the values getting for the image key – Anshad Rasheed Oct 28 '15 at 06:09