So googling around, it appears arrays that are more than 3 dimensions in size (yours is 4D) don’t work on iPhones.
I know that AOT compiles up every class so that they exist in the build and aren’t generated JIT. They probably auto-generate arrays up to 3 dimensions only when doing so.
Don’t use a 4D array… honestly, I can’t think of many reasons to ever use a 4D array. Define a new class/struct instead.
I was using 4D because it is convenient to manipulate (multidimensional interpolation of data). I guess I will probably go with 2D matrices instead, with some methods to extract the right value easily.