Search Unity

Loading problem on iOS

Discussion in 'Addressables' started by DJacquemin, Sep 20, 2018.

  1. DJacquemin

    DJacquemin

    Joined:
    Jun 19, 2017
    Posts:
    13
    Hi,

    My application loads addressables from a local server.

    Here is the basic code I use :
    Code (CSharp):
    1. Addressables.LoadAssets<IResourceLocation>("ArtistContent", null).Completed += AddressableLoadingFinished;
    Everything loads on Android but the loading never goes through "completed" on iOS.

    I tried with addressables compiled on both windows and OSX but it doesn't matter.
    I can access to the resources on the server using the web browser and I always check the internet reachability. I suppose it's not an accessibility or network problem.
    I don't really know if the problem is from the addressable system or if I have to do something special to access the server on iOS (I don't have any experience on that platform).

    Did someone already encounter the same situation ?

    Thanks
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    Don't you get any errors in the console in XCode?
     
  3. DJacquemin

    DJacquemin

    Joined:
    Jun 19, 2017
    Posts:
    13
    Sorry, I didn't pay attention to those errors.

    I have some error from Vuforia but then, I get this :
    The second block is probably triggered because I directly access to the "Result" of "IAsyncOperation<IList<IResourceLocation>> op" without testing if it's null.
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736