A strangest problem about build armv64 in Xcode

Sorry for my poor English…
Eager for your help, today, I met problem, described as this:

Undefined symbols for architecture arm64:

“_U3CPrivateImplementationDetailsU3E_t1227_il2cpp_TypeInfo”, referenced from:

_g_AssemblyU2DCSharp_Assembly_Types in Assembly-CSharpMetadata.o

_U3CPrivateImplementationDetailsU3E_t1227_0_0_0 in Il2CppTypeDefinitions.o

_U3CPrivateImplementationDetailsU3E_t1227_1_0_0 in Il2CppTypeDefinitions.o

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

and i spend almost whole day to find the error code below,

public void GetShareTips ()
    {
        StartCoroutine (GetShareTipsFromAPI ());
    }

    public IEnumerator GetShareTipsFromAPI ()
    {
        APITool.GetInstance ().GetShareTips (GetShareTipsCallback);
        yield return null;
    }

could someone help me about this problem, i had no idea at all.

you probably use a plugin (APITools?) which is not IL2CPP ready. If you are lucky there is a new version of the plugin supporting it.

i had a test below :

public void GetShareTips ()
    {
        StartCoroutine (GetShareTipsFromAPI ());
    }

    public IEnumerator GetShareTipsFromAPI ()
    {
//        APITool.GetInstance ().GetShareTips (GetShareTipsCallback);
        yield return null;
    }

and the error message is same as before.

it just like the function GetShareTipsFromAPI is wrong. i try to change the fouction name, but no use.

does anyone met this problem?

Just because you’re not calling the function doesn’t mean the plugin itself isn’t causing the error. The DLL is still being included in the build and could be what’s bottoming out.

If possible, remove the plugin entirely (and comment out any references to it in your code) and try building. If you can build, it’s likely a problem with the plugin. If not, it’s probably* not a problem with the plugin.

there are some function just like it, but they did not cause an error.
i find about fifty IEnumerator functions is my single script, when i comment, it built successed, if not then built failed.

Oh. Well nevermind, then! I thought you said it still failed even when you commented out the code.

Did you select arm64 or Universal in the Player Settings in Unity?

Yes, i had select the Universal and armv64, because the rules of App Store.