Hello!
I have problem with the on demand resource option.
Here are the main parameters:
Unity version: 2017.3.1f1
Xcode version: 9.4.1
Tested on Device: iPad Air 2 (iOS 11.4.1)
I went through this tutorial:
I was trying to make an AssetBundle from 1 Folder which contains 1 Sprite Atlas and 10 Pictures. Sprite Atlas has unchecked the Include in Build check-mark.
As the tutorial says I made the „assetcollection” Bundle. „Init” tag is not important I was just trying to fix our problem adding another tag with something to Initial Install Tags.
I archived and uploaded the project. AppStore processed the project and showed that there are 2 Asset Packs and ODR is Enabled.
I downloaded and installed the app from TestFlight . When I run the App It shows in console that ODR finished download and then I get the Request Exception. It downloads something but not my uploaded xx MB of data.
Console log after first Start:
[ODRDownloadRequest]: Download for com.sunwardgames.differencefeverinitialspots with UUID BC0BEE8E-B656-4217-925D-F835B43A28BC did complete
[ODRDownloadOperation]: [BC0BEE8E] Request completed successfully
[ODRClient]: Calling the completion handler. Result [{
“com.sunwardgames.differencefeverinitialspots.asset-pack-04HBKZWYZI0YJ” = {
“_NSODRURLKey” = “file:///var/mobile/Library/OnDemandResources/AssetPacks/2C808291-0AAE-4919-936F-9567FF4271D5/3215402020829963239/com.sunwardgames.differencefeverinitialspots.asset-pack-04HBKZWYZI0YJ.assetpack/”;
};
}] Error [(null)]
[ODRMobileStoreServices]: ODRDownloadRequest did finish with PID: -2864010334370514937, State: DownloadStateFinished
Exception: ODR request failed:
at AssetLoader+c__Iterator0.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
Console log after second Start:
[ODRMobileStoreServices]: DestinationURL [file:///var/mobile/Library/OnDemandResources/AssetPacks/2C808291-0AAE-4919-936F-9567FF4271D5/3215402020829963239/com.sunwardgames.differencefeverinitialspots.asset-pack-04HBKZWYZI0YJ.assetpack/] is non-empty. Resource appear to already exists.
Exception: ODR request failed: (Filename: currently not available on il2cpp Line: -1)
Loading ( not working for now )
After chechking request.error I wanted to load the sprites to use them in our scene.
Bundle = AssetBundle.LoadFromFile(“res://” + resourceName);
Can anyone help me what the problem is here? I also created a new project from scratch just to test this feature but the result is the same.