iOS errors related to System.Collections.IEnumerator.get_Current()

After checking that our app works fine on Windows and Android we are now trying to do the same on iOS, with less luck so far.

The app raises NullReferenceException errors that all refer to IEnumerator functions.

Example :

NullReferenceException: Object reference not set to an instance of an object.
at AppsGo.UnityController.PageController+d__14.System.Collections.IEnumerator.get_Current () [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.InvokeMoveNext (System.Object stateMachine) [0x00000] in <00000000000000000000000000000000>:0

In order to isolate the origin of the error I removed all the content of one of those IEnumerator functions that causes the problem, like so:

public IEnumerator CoroutineShowElement(Element element, float milliseconds)
{
            yield return new UnityEngine.WaitForSeconds(milliseconds/1000);
}

Still raising errors.

If I remove all references to these functions I still get the same errors although the functions are not called anymore.

Before spending more time on trying to isolate the problem, does anyone ever had this type of problem before?

I am using Unity 2020.1.0f1 and my testing device is an iphone6 with iOS12.
I have put the crash log in attachment.

6195868–679681–crash_ios.txt (41.2 KB)

I guess my problems come from my coroutines and async calls.
The debugging is gonna be a bit of a nightmare though. A shame that these problems only show up once I am playing the app on the iOS device.

I am making progress, apparently there’s a problem with the way I am wrapping the addressable call in an async function Await Addressable Instantion

I’ll keep you guys posted

ok, so there’s nothing wrong with my code. I updated to the latest version of the Addressables package and I deleted the addressable folder in the StreamingAssets folder.
Addressables.LoadAssetAsync now works, on iOS 13. On iOS 12 it fails.
Also, remember that on iOS requires the asset bundles to be downloaded with https and not http