- Home /
AssetBundle won't download on iPad
I created a basic project with a couple of simple AssetBundles. My project is set to iOS and the BuildTarget when building AssetBundles is set to iOS. The AssetBundles are uploaded to my Amazon S3 server and made public so I can access them in my project. All of this works perfectly in the Editor.
When I push it to my iPad Air 2 via Xcode, the AssetBundles don't show and Xcode gives the following error:
2017-11-02 14:52:25.205231+0000 abscaletestv1[378:107254] You are using download over http. Currently unity adds NSAllowsArbitraryLoads to Info.plist to simplify transition, but it will be removed soon. Please consider updating to https.
2017-11-02 14:52:25.206878+0000 abscaletestv1[378:108182] NSURLConnection finished with error - code -1002
UnityException: WWW Download had an error: unsupported URL
at AssetBundleAugmenter+<DownloadAndCache>c__Iterator0.MoveNext () [0x00000] in <filename unknown>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
In my script I have the following piece of code that makes up the whole URL:
"file://" + URL + "/" + BundleName;
The URL is assigned in the Inspector and copied from my server, the Bundle Name is also assigned in the Inspector and is the name of the AssetBundle I exported.
Has anyone else come across this problem and found a solution?
Wait, I don't get it. You say you are downloading the asset bundle from an Amazon Server but you are using the file:// scheme? How come? Isn't that supposed to be http:// ins$$anonymous$$d?
@$$anonymous$$acDx The http:// is included as part of the URL
Ummmm. So the actual URL ends up being "file://http://someadress.com/BundleName" ?? I've never tried something like that but I'm not sure that works man.
AFAI$$anonymous$$ you need to use either file, or http. Not both.
I tried with and without the 'file://' at the beginning and neither worked