Operating Environment
Unity 5.3.5f1 (il2cpp) compiled iOS version
XCode Version 7.2.1 (7c1002)
Mac OS X 10.11.3 (15D21) (Mac Mini)
IPhone 5,6, iPad error message Could not produce class with ID
Could not produce class with ID XXX.
This could was caused by a class being stripped from the build even though it is needed. Try Disabling ' Strip Engine Code ' in Player settings.:<loadwwwienumerator>c__iterator99:movenext ()
Specific performance: May be app Flash, hint error message
Solutions
1. In the above error prompt, there is a hint disabling "Strip Engine Code"
So what we're going to do is Setting the player Setting–other, remove the tick Strip Engine .
if you want to strip Engine
If you want to strip Engine, then you need to be strip to add in.
1. New Link.xml placed in the Assets directory, add the name of the DLL that do not want to be strip
ID Query: https://docs.unity3d.com/Manual/ClassIDReference.html
Following is the content of the default Link.xml in the SDK after importing Qualcomm Vuforia
<linker> <!--The following assemblies contain namespaces that should being fully preserved even when assembly stripping is US Ed. Not excluding the assemblies below from stripping can result in crashes or various exceptions. - <AssemblyFullName= "Vuforia.unityextensions"> <namespaceFullName= "Vuforia"Preserve= "All"/> </Assembly> <AssemblyFullName= "System"> <namespaceFullName= "System.Runtime.InteropServices"Preserve= "All"/> <namespaceFullName= "System.Collections.Generic;"Preserve= "All"/> <namespaceFullName= "SYSTEM.LINQ;"Preserve= "All"/> <namespaceFullName= "System.Text.RegularExpressions;"Preserve= "All"/> <namespaceFullName= "System.IO;"Preserve= "All"/> <namespaceFullName= "System;"Preserve= "All"/> </Assembly></linker>
If the ID of the prompt is editor, for example, Animatorcontroller (ID 91) belongs to the editor package, can not be added back with LINK.XM, the Resource under the building of an empty prefab, Hang a animatorcontroller on it and leave this prefab when you pack it to make sure the class is not strip out.
Reference: https://forum.unity3d.com/threads/could-not-produce-class-with-id-91-ios.267548/
Unity's default value
Taking Unity5.3.5 as an example
iOS platform, Strip Engine Code is checked by default, and script background is i2cpp
Android platform, default disabled Strip Engine Code, and script background to mono2x
iOS error could not produce class with ID