Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Failed Running il2cppcore.dll + il2cppcore.dll did not run properly! failed to build APK on MAC

Discussion in 'Android' started by iGAMONIC, Apr 30, 2020.

  1. iGAMONIC

    iGAMONIC

    Joined:
    Oct 27, 2017
    Posts:
    15
    Build failure even in empty project.
    i have following things in mac:
    * Unity hub 2.3.1 on macOS Mojave 10.14.6
    * Unity 2018.4.18f1 & 2018.4.16f1 (LTS) + Android + iOS Support installed.
    * Android NDK android-ndk-r16b at Desktop/Android/android-ndk-r16b
    * In Unity > Preferences > External Tools > Checked (Use Embedded JDK)
    * NDK path is set.
    * Downloaded sdk by Android Studio > SDK Manager and set its path to external tool path of sdk.
    * i have successfully uploaded apps for AppStore. but now i am unable to set unity platform so i can build APK as well.
    i have gone through this link
    https://forum.unity.com/threads/il2cpp-exe-did-not-run-properly.686434/
    https://forum.unity.com/threads/build-fails-with-il2cpp.523955/#post-4787474
    https://answers.unity.com/questions/1682447/il2cppcoredll-did-not-run-properly-empty-project.html
    https://docs.unity3d.com/Manual/android-sdksetup.html
    but didn't find solution. i tried all things that might discussed in threads.

    Thanks in Advance, Please review my error and help!

    Code (CSharp):
    1.  
    2.  
    3. ******************ERROR 1*******************
    4.  
    5. Failed running /Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Users/saifullahsadi/Desktop/Android/android-ndk-r16b" --map-file-parser="/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput"
    6.  
    7. stdout:
    8. Building libil2cpp.so with AndroidToolChain
    9. Output directory: /Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    10. Cache directory: /Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Library/il2cpp_android_armeabi-v7a/il2cpp_cache
    11. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:
    12.  
    13. Invocation was: Executable: /Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
    14. Arguments: -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/external/boehmgc/include" -I"/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sysroot" -gcc-toolchain "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64" -target armv7-none-linux-androideabi -isystem "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.cpp" -o "/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6DC6F2B88254C6700375C28640C4718E.o"
    15.  
    16. at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    17. at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    18. at il2cpp.Program.DoRun(String[] args)
    19. at il2cpp.Program.Run(String[] args)
    20. at il2cpp.Program.Main(String[] args)
    21. stderr:
    22.  
    23. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException:
    24.  
    25. Invocation was: Executable: /Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++
    26. Arguments: -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/external/boehmgc/include" -I"/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sysroot" -gcc-toolchain "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64" -target armv7-none-linux-androideabi -isystem "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.cpp" -o "/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6DC6F2B88254C6700375C28640C4718E.o"
    27.  
    28. at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    29. at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    30. at il2cpp.Program.DoRun(String[] args)
    31. at il2cpp.Program.Run(String[] args)
    32. at il2cpp.Program.Main(String[] args)
    33. at Program.Main(String[] args)
    34.  
    35. UnityEngine.Debug:LogError(Object)
    36. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    37. UnityEditorInternal.Runner:RunNetCoreProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:79)
    38. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:374)
    39. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:357)
    40. UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    41. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    42. UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    43.  
    44. ******************ERROR 2*******************
    45. Exception: /Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll did not run properly!
    46. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    47. UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:79)
    48. UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:374)
    49. UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:357)
    50. UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    51. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    52. UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <9732af87a1134c179f7349df6be25cbc>:0)
    53. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <9732af87a1134c179f7349df6be25cbc>:0)
    54. 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 <9732af87a1134c179f7349df6be25cbc>:0)
    55. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <9732af87a1134c179f7349df6be25cbc>:0)
    56. 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/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:288)
    57. UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    58.  
    59.  
    60. ******************ERROR 3*******************
    61.  
    62. Build completed with a result of 'Failed'
    63. UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
    64.  
    65. ******************ERROR 4*******************
    66.  
    67. UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    68. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194
    69. at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:97
    70. UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,290
    It looks like the C++ compiler from the NDK if failing, but I don't see an error message. It might be worth trying to run the compiler from the command line directly.

    To do this, make the error happen in Unity, and leave the Unity editor running (that will leave all of the temporary files in place). Then run this command in a terminal window:

    /Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -DNET_4_0 -DUNITY_AOT -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2018.4.16f1/Unity.app/Contents/il2cpp/external/boehmgc/include" -I"/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include" -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/include/backward" -I"/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include" -c -g -DNDEBUG -funwind-tables -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -std=c++98 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fPIC -Os --sysroot "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sysroot" -gcc-toolchain "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64" -target armv7-none-linux-androideabi -isystem "/Users/saifullahsadi/Desktop/Android/android-ndk-r16b/sysroot/usr/include/arm-linux-androideabi" -D__ANDROID_API__=16 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.cpp" -o "/Users/saifullahsadi/Desktop/BopCorn/Mr Spy Water /Library/il2cpp_android_armeabi-v7a/il2cpp_cache/6DC6F2B88254C6700375C28640C4718E.o"

    Hopefully that will provide some useful output.
     
  3. iGAMONIC

    iGAMONIC

    Joined:
    Oct 27, 2017
    Posts:
    15
    @JoshPeterson I regenerated the error in editor and didn't stop it. i opened the terminal and run your code.
    i found
    -bash: /Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++: No such file or directory
    and i looked carefully in this directory i didn't find its directory but i found following directory

    /Users/saifullahsadi/Desktop/Android/android-ndk-r16b/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe

    i think you were right, NDK incorrectly installed.
    Please if its this kinda matter! please see my unity version and send me link to compatible version of NDK from a good link.

    if the matter is other please help me !
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,290
    It looks like you might have the Windows version of the NDK installed on macOS. You can find the NDK setup instructions here: https://docs.unity3d.com/Manual/android-sdksetup.html
     
  5. iGAMONIC

    iGAMONIC

    Joined:
    Oct 27, 2017
    Posts:
    15
  6. iGAMONIC

    iGAMONIC

    Joined:
    Oct 27, 2017
    Posts:
    15
  7. NikolaiZaets

    NikolaiZaets

    Joined:
    Jul 18, 2019
    Posts:
    1
    @JoshPeterson I have the same issue, but in this case I am sure about using the correct NDK. Also I tried to clear the cache, but it didn't help( Mono Script Backend works fine but there're troubles in IL2CPP one.

    Failed running /Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/Unity/Hub/Editor/2019.3.4f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/Unity/Hub/Editor/2019.3.4f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Users/nikolaizaiets/Downloads/android-ndk-r19c" --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/Il2Cpp/il2cppOutput"



    stdout:

    Building libil2cpp.so with AndroidToolChain

    Output directory: /Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a

    Cache directory: /Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Library/il2cpp_android_armeabi-v7a/il2cpp_cache

    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:



    Invocation was: Executable: /Users/nikolaizaiets/Downloads/android-ndk-r19c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang

    Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2019.3.4f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.c" -o "/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/5315C9D8845F5A2E663693BDF76C32FF.o"



    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)

    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)

    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)

    at il2cpp.Program.Main(String[] args)

    stderr:



    Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException:



    Invocation was: Executable: /Users/nikolaizaiets/Downloads/android-ndk-r19c/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang

    Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"/Applications/Unity/Hub/Editor/2019.3.4f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/Il2Cpp/il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,--noexecstack -fno-rtti -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value "/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Temp/StagingArea/Il2Cpp/il2cppOutput/Il2CppTypeDefinitions.c" -o "/Users/nikolaizaiets/Desktop/Projects/PrepareLoading/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/5315C9D8845F5A2E663693BDF76C32FF.o"



    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)

    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)

    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)

    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)

    at il2cpp.Program.Main(String[] args)

    at Program.Main(String[] args) in /Users/builduser/buildslave/unity/build/External/il2cpp/il2cpp/il2cppcore/Program.cs:line 24



    UnityEngine.Debug:LogError(Object)

    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)

    UnityEditorInternal.Runner:RunNetCoreProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:77)

    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:517)

    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:500)

    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:337)

    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:65)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)







    Exception: /Applications/Unity/Hub/Editor/2019.3.4f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll did not run properly!

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)

    UnityEditorInternal.Runner.RunNetCoreProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:77)

    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:517)

    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:500)

    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:337)

    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:65)

    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8656af08553f4582a8969c722a26e39b>:0)

    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8656af08553f4582a8969c722a26e39b>: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 <8656af08553f4582a8969c722a26e39b>:0)

    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8656af08553f4582a8969c722a26e39b>: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/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:340)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)





    Build completed with a result of 'Failed'

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)







    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors

    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00269] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:191

    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
     
  8. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,290
    It looks like the clang compiler from the Android NDK is crashing while it is compiling Il2CppTypeDefinitions.c. This is a file that IL2CPP generates, and sometimes it can be very large. I'd recommend trying the latest 2019.3 release of Unity with this project. We have made some changes to make that generated file smaller in many cases, which might avoid this issue.
     
  9. jmguillemette

    jmguillemette

    Joined:
    Mar 4, 2015
    Posts:
    51
    i am running into the same error running unity cloud build for mac and windows
     
  10. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    487
    I am having the same problem on a webgl build with unity 2019.4.4 mac. This just started happening after Mojave upgrade. Is there an easy fix for this? New unity install with latest hub.
     
    Last edited: May 8, 2022
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,290
    It is possible that we could run into the same issue with the Emscripten compiler for WebGL. Maybe try the latest 2019.4 version if possible. We've not seen this for a while, so I think that it is corrected.

    If that does not work, please send the full error message you see. It might be subtly different from the other errors reported here.
     
  12. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    487
    I found the answer. Mac OSX Monterey 12.3 does not include python There's a few threads about it. I followed the instructions and now its working again.
     
    JoshPeterson likes this.
  13. shanu12joshi

    shanu12joshi

    Joined:
    Aug 11, 2020
    Posts:
    2
    I am facing the same issue, after updating mac on Monterey my Webgl build is crashing, with


    Exception: /Applications/Unity/Hub/Editor/2019.4.21f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll did not run properly!
    Failed running "/Applications/Unity/Hub/Editor/2019.4.21f1/Unity.app/Contents/il2cpp/build/deploy/il2cppcore/il2cppcore.dll" --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="/Users/shanujoshi/game/NFT-Rush-with-colyseus-Fixed/Assets /../Temp/StagingArea/Data/Native/build.bc" --cachedirectory="/Users/shanujoshi/game/NFT-Rush-with-colyseus-Fixed/Assets/../Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --emit-method-map --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="/Applications/Unity/Hub/Editor/2019.4.21f1/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2019.4.21f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/shanujoshi/game/NFT-Rush-with-colyseus-Fixed/Temp/StagingArea/Data/Managed" --generatedcppdir="/Users/shanujoshi/game/NFT-Rush-with-colyseus-Fixed/Temp/StagingArea/Data/il2cppOutput"
    stdout:
    Building build.bc with EmscriptenToolChain
    Output directory: /Users/shanujoshi/game/NFT-Rush-with-colyseus-Fixed/Temp/StagingArea/Data/Native
    Cache directory: /Users/shanujoshi/game/NFT-Rush-with-colyseus-Fixed/Library/il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) (No such file or directory) ---> System.ComponentModel.Win32Exception: No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    ---> (Inner Exception #0) System.ComponentModel.Win32Exception (2): No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (2): No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #3) System.ComponentModel.Win32Exception (2): No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #4) System.ComponentModel.Win32Exception (2): No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setUser, UInt32 userId, UInt32 groupId, Int32& lpChildPid, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean shouldThrow)
    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #5) System.ComponentModel.Win32Exception (2): No such file or directory
    at Interop.Sys.ForkAndExecProcess(String filename, String[] argv, String[] envp, String <message truncated>
     
  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,290
    This is likely caused by a macOS change related to Python. See https://forum.unity.com/threads/cas...d-unity-2020-3-constant-build-errors.1255419/ for details.
     
    matheus_inmotionvr likes this.