iOS error could not produce class with ID

Source: Internet
Author: User
Tags unity 5

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.