watchkitwatchos-2ios9.2xcode7.3

Watch OS - App Transport security


I am using Xcode 7.3. I have added App Transport Security Settings and set Allow Arbitary Loads to yes in watchkit extension info.plist.And want to play audio from an http link sound source using watchkit MediaPlayerController But the apple watch keeps throwing the error "The resource could not be loaded because the App Transport Security requires the use of a secure connection".

 Watchkit extension info.plist


Solution

  • According to Apple the audio content must be store to a https server. Otherwise need to download the file manually.