I’ve been spending around 7 hours to find what the problem is in my build. Although everything is fine in the Editor, ios build was broken. This made me think there was something missing in the flows which were added to the Preferred Types. That’s why went through all the graphs(Both NC and FC) and run “Scan Graph For Serialized Types”. Even this didn’t solve my problem. Exceptions thrown also didn’t help much. That’s why i dug into the FC and NC code and made the following changes:
After adding these logs, i was able to track what was missing and found out a graph was using “Double” :D. Adding Double type to the Preferred Types solved my problems after 7 hours :))
After all i’m not sure if these places are proper to follow what’s going on but worked for me. My request is extensive logs on AOT platforms showing what’s going on if the build is “Development” build.
PS: Sorry for the long post but wanted to share how i desperately need this feature in my future projects 😀
Thank you for the info and sorry that you went through that, but I am glad you got it solved!
Out of curiosity, wasn’t there any related exception that pointed out to double as the culprit?
Usually, when a type is missing from the Preferred Types in AOT, you will get something like “Attempting to [info here], for which no ahead of time (AOT) code was generated”. Did you get anything similar?
There was many different exceptions and one of them was pointing out something relevant with double variable type. There was a similar log but i don’t recall exactly what information it had. I’m not sure if it had something relevant with the double type tho.
Are you by any chance using an Integer Array (integer) node in one or more of your flowscripts?
Indexing an array (like Get Integer, or Set Integer) are one of the very few things not supported in AOT right now, but please let me know if that is the case and I will try my best to provide a solution for you!
If you want also please feel free to contact me directly regarding this issue to (support_AT_paradoxnotion.com).