Crash building with IL2CPP

Hi,
I’ve lost already all my hair trying to clean this build error with IL2CPP.
With mono I can export, but not with il2cpp.

Any help is more than appreciated!!! :slight_smile:

Exception: C:\Program Files\Unity\Hub\Editor\2019.4.40f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly! Failed running “C:\Program Files\Unity\Hub\Editor\2019.4.40f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe” --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile=“unityaot” --compile-cpp --libil2cpp-static --platform=“Android” --architecture=“ARM64” --configuration=“Release” --outputpath=“E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a\libil2cpp.so” --cachedirectory=“E:\BackupHP\Unity3DProjects\PhotoSim40f1\Assets..\Library\il2cpp_android_arm64-v8a/il2cpp_cache” --additional-include-directories=“C:/Program Files/Unity/Hub/Editor/2019.4.40f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include” --additional-include-directories=“C:/Program Files/Unity/Hub/Editor/2019.4.40f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include” --tool-chain-path=“C:/NDK” --profiler-report --map-file-parser=“C:/Program Files/Unity/Hub/Editor/2019.4.40f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe” --directory=E:/BackupHP/Unity3DProjects/PhotoSim40f1/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=E:/BackupHP/Unity3DProjects/PhotoSim40f1/Temp/StagingArea/Il2Cpp/il2cppOutput stdout: Building libil2cpp.so with AndroidToolChain Output directory: E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\assets\bin\Data\Native\arm64-v8a Cache directory: E:\BackupHP\Unity3DProjects\PhotoSim40f1\Library\il2cpp_android_arm64-v8a\il2cpp_cache ObjectFiles: 400 of which compiled: 0 Total compilation time: 393 milliseconds. il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @“C:\Users\musil\AppData\Local\Temp\tmpA581.tmp” -o “E:\BackupHP\Unity3DProjects\PhotoSim40f1\Library\il2cpp_android_arm64-v8a\il2cpp_cache\linkresult_86794D952D10FA1D1B168E09A44CE496\libil2cpp.so” -shared -Wl,-soname,libil2cpp.so -Wl,–no-undefined -Wl,-z,noexecstack -Wl,–gc-sections -Wl,–build-id -stdlib=libc++ -static-libstdc++ -target aarch64-linux-android21 -Wl,–wrap,sigaction -llog -rdynamic -fuse-ld=bfd.exe E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_Init_mEE37CB6EA01C94327D6DCBDA4EDBD7E886908597': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4277: undefined reference to _CWebViewPlugin_Init’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_Destroy_m018DC7133E91ABFB2391180B009E1F73801BF3C0': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4296: undefined reference to _CWebViewPlugin_Destroy’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetMargins_m57B337BB8233D6B619C7DEBFE1D3D70B81B4B002': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4307: undefined reference to _CWebViewPlugin_SetMargins’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetVisibility_m12EF13EBFFB7E8C1898A6E9F9BB279324E7C5182': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4317: undefined reference to _CWebViewPlugin_SetVisibility’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetAlertDialogEnabled_m8AC47CE9E7E747D4664F5BC917A8AFF8B01C39DF': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4327: undefined reference to _CWebViewPlugin_SetAlertDialogEnabled’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetScrollBounceEnabled_m199F01908A803ED58F4B57D51546D036B45C91DC': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4337: undefined reference to _CWebViewPlugin_SetScrollBounceEnabled’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetURLPattern_mC027334022050EC30F5670D13C77A88728DFD8C9': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4359: undefined reference to _CWebViewPlugin_SetURLPattern’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_LoadURL_m6D9A83148199583CC2973B95D1BE8976234340C3': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4386: undefined reference to _CWebViewPlugin_LoadURL’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_LoadHTML_mC095335BA86A02CFE0FA20E9B9C309D461E08E93': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4408: undefined reference to _CWebViewPlugin_LoadHTML’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_EvaluateJS_mEC3111AF6E983C32AD3A1697492F8B57929486A7': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4430: undefined reference to _CWebViewPlugin_EvaluateJS’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_Progress_m6D097DB313899B1BAA9CBAE6EF73A554E302E7AB': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4444: undefined reference to _CWebViewPlugin_Progress’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_CanGoBack_m94810D3E02BDDF19A71FEC1EC7CE8FEBBC087D45': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4455: undefined reference to _CWebViewPlugin_CanGoBack’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_CanGoForward_mFABF8868D98C72A372183AE10F0B5154ABEC7400': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4466: undefined reference to _CWebViewPlugin_CanGoForward’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_GoBack_m9DB05BA0C1680B3D39084D3C5654B9E009BCCAE4': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4477: undefined reference to _CWebViewPlugin_GoBack’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_GoForward_mD237F3EFA2B503F9A422E9D218FE7B0BB3511776': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4487: undefined reference to _CWebViewPlugin_GoForward’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_Reload_m43ABC6DFE961CD8E08CAEA31AF13F25FC1592483': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4497: undefined reference to _CWebViewPlugin_Reload’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_AddCustomHeader_m840FD6A8D4C8335169B07CFC941B1271E178365D': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4515: undefined reference to _CWebViewPlugin_AddCustomHeader’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_GetCustomHeaderValue_m0E88E4C4FD184E5234DF5E8BC0B05D452F04510D': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4537: undefined reference to _CWebViewPlugin_GetCustomHeaderValue’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_RemoveCustomHeader_m36DFB63E6646592EED73457FD99ED85093ABB25D': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4564: undefined reference to _CWebViewPlugin_RemoveCustomHeader’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_ClearCustomHeader_mB04EB8DA4B46F0A0D0FED3BC1460F4B022564315': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4578: undefined reference to _CWebViewPlugin_ClearCustomHeader’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_ClearCookies_m2D5E691733ADADB4D6115A6198FEB97E15E94B85': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4588: undefined reference to _CWebViewPlugin_ClearCookies’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SaveCookies_mEBE74C84580EDDB5A4350CAB8EEF4772F120F348': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4598: undefined reference to _CWebViewPlugin_SaveCookies’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_GetCookies_m5BF5ED2205FEEBFB0922353A8EFBF8226BF9A3FA': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4612: undefined reference to _CWebViewPlugin_GetCookies’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetBasicAuthInfo_mC7611CFF3EA60EEA661852350948257984FA6939': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4643: undefined reference to _CWebViewPlugin_SetBasicAuthInfo’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_ClearCache_mAE13AAE0819099899B5C783AE550C86A4B162F4B': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4661: undefined reference to _CWebViewPlugin_ClearCache’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetMargins_m57B337BB8233D6B619C7DEBFE1D3D70B81B4B002': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4307: undefined reference to _CWebViewPlugin_SetMargins’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetVisibility_m12EF13EBFFB7E8C1898A6E9F9BB279324E7C5182': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4317: undefined reference to _CWebViewPlugin_SetVisibility’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetAlertDialogEnabled_m8AC47CE9E7E747D4664F5BC917A8AFF8B01C39DF': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4327: undefined reference to _CWebViewPlugin_SetAlertDialogEnabled’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_SetScrollBounceEnabled_m199F01908A803ED58F4B57D51546D036B45C91DC': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4337: undefined reference to _CWebViewPlugin_SetScrollBounceEnabled’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_LoadURL_m6D9A83148199583CC2973B95D1BE8976234340C3': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4386: undefined reference to _CWebViewPlugin_LoadURL’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_EvaluateJS_mEC3111AF6E983C32AD3A1697492F8B57929486A7': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4430: undefined reference to _CWebViewPlugin_EvaluateJS’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_Progress_m6D097DB313899B1BAA9CBAE6EF73A554E302E7AB': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4444: undefined reference to _CWebViewPlugin_Progress’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_CanGoBack_m94810D3E02BDDF19A71FEC1EC7CE8FEBBC087D45': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4455: undefined reference to _CWebViewPlugin_CanGoBack’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_CanGoForward_mFABF8868D98C72A372183AE10F0B5154ABEC7400': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4466: undefined reference to _CWebViewPlugin_CanGoForward’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_GoBack_m9DB05BA0C1680B3D39084D3C5654B9E009BCCAE4': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4477: undefined reference to _CWebViewPlugin_GoBack’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_GoForward_mD237F3EFA2B503F9A422E9D218FE7B0BB3511776': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4487: undefined reference to _CWebViewPlugin_GoForward’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD39D49.o: In function IOSWebViewWindow__CWebViewPlugin_Reload_m43ABC6DFE961CD8E08CAEA31AF13F25FC1592483': E:\BackupHP\Unity3DProjects\PhotoSim40f1\Temp\StagingArea\Il2Cpp\il2cppOutput/WebView.cpp:4497: undefined reference to _CWebViewPlugin_Reload’ E:/BackupHP/Unity3DProjects/PhotoSim40f1/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5DFF14FCA64D9E2D9236B4A46BD3

This failure occurs because the code in the project has extern methods in C#. Methods marked as extern with a the [Dllimport(“__Internal”)] attribute must be present in a native library that is linked with the Unity player when building with the IL2CPP scripting backend.
For example, this in this project one function which causes this issue is named: _CWebViewPlugin_Init
You have two options:

  1. Build a native library with all of the methods marked as extern with the [Dllimport(“__Internal”)] attribute for the target platform and architecture of the player. See this documentation for details about native plugins: Unity - Manual: Native plug-ins
  2. Remove the C# code which defines this extern method. You can do that with platform dependent compilation: Unity - Manual: Conditional compilation
1 Like

This helped me 100%!! I finally managed to export it. I added the #if UNITY_IOS … #endif to one of the third party scripts related to IOS and it exported without errors!
I can’t thank you enought!!!
Best wishes for your life, Josh!!!

1 Like