Exception: Unity.IL2CPP.Building.BuilderFailedException:
I don't exactly know what happened here, especially since I just fixed some typos in my game today but I wasn't coding anymore.
I also tagged and untagged all the JDK NDK SDK things in preferences... but this time it didn't fix it.
Please help.
Exception: Unity.IL2CPP.Building.BuilderFailedException: /Applications/Unity/Hub/Editor/2020.2.0f1/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ @"/var/folders/7q/2w5x6jcs62l9rkwlfmxhkm8r0000gn/T/tmpVTzPgL.tmp" -o "/Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/linkresult_CE2DA8029F293D5EE30780571F57B419/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 "/Applications/Unity/Hub/Editor/2020.2.0f1/PlaybackEngines/AndroidPlayer/Variations/il2cpp/Release/StaticLibs/arm64-v8a/baselib.a" -llog -rdynamic -fuse-ld=bfd
/Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/2E0EA72A47DDF55D800242882B390B06.o:(.data.rel.ro.g_UnityEngine_ImageConversionModule_CodeGenModule+0x0): multiple definition of g_UnityEngine_ImageConversionModule_CodeGenModule' /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/7BF79C3C335DD0186A1970642173956E.o:(.data.rel.ro.g_UnityEngine_ImageConversionModule_CodeGenModule+0x0): first defined here /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/0B80AFAC6768DF0696F33AD5F208EA17.o:(.data.rel.ro.g_MetadataRegistration+0x0): multiple definition of
g_MetadataRegistration' /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/B6350D84E42A353F1A5A404FCEAF9AF2.o:(.data.rel.ro.g_MetadataRegistration+0x0): first defined here /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/343C7CDD2688E57CAC11D7D98FF618D5.o:(.data.rel.ro.g_UnityEngine_SpriteShapeModule_CodeGenModule+0x0): multiple definition of g_UnityEngine_SpriteShapeModule_CodeGenModule' /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/211FC80BB9931FA13443B2B26878578B.o:(.data.rel.ro.g_UnityEngine_SpriteShapeModule_CodeGenModule+0x0): first defined here /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/1758667B454C897B43E2F5C1A799D744.o:(.data.rel.ro.g_UnityEngine_TilemapModule_CodeGenModule+0x0): multiple definition of
g_UnityEngine_TilemapModule_CodeGenModule' /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/5153BB123D2F4BC6757F3E5623FC91A1.o:(.data.rel.ro.g_UnityEngine_TilemapModule_CodeGenModule+0x0): first defined here /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/818E2DAFB75BE9861EED32046D3B5246.o:(.data.rel.ro.g_UnityEngine_GridModule_CodeGenModule+0x0): multiple definition of g_UnityEngine_GridModule_CodeGenModule' /Users/sabrinagriesbacher/Desktop/Story Game/Library/il2cpp_android_arm64-v8a/il2cpp_cache/632586EF53FA183D69331F2A5BF18122.o:(.data.rel.ro.g_UnityEngine_GridModule_CodeGenModule+0x0): first defined here clang++: error: linker command failed with exit code 1 (use -v to see invocation) at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet
1 objectFiles, CppToolChainContext toolChainContext) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 363 at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.Building/CppProgramBuilder.cs:line 160 at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Compilation/CompilationDriver.cs:line 65 at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 74 UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:129) UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:65) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:755) UnityEditorInternal.IL2CPPBuilder.RunCompileAndLink (System.String il2cppBuildCacheSource) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:598) UnityEditorInternal.IL2CPPUtils.RunCompileAndLink (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, System.String il2cppBuildCacheSource) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:245) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:337) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
Answer by That_Mason_Guy · Sep 07, 2021 at 12:06 PM
Any fix for this?
how about you, any solution ? .. i have the same error, btw I'm using unity 2020.3.11f1
Answer by SKEntertainment1 · Sep 16, 2021 at 08:31 PM
Ok in my case it was a Plugin. The IAP plug-in.
I was switching to another version again and it worked.
Don’t know why it was messing things up.
I found somewhere that this is related to plugins.
Hope this help you.
It very much be i to use a plugin and i get this same error i also read may get this mostly when they have external packages, plugins...