Search Unity

IL2CPP Win32Exception build error for Android platform

Discussion in 'Daydream' started by reedny, Aug 9, 2017.

  1. reedny

    reedny

    Joined:
    Mar 4, 2017
    Posts:
    56
    I've been building for Android using il2cpp for 2-3 months w/o errors, and started getting a build error. Not sure what I changed. I've tried removing Library dir and restarting the Editor, but same error. There is no msg giving an indicator what the problem is other than Win32Exception.

    The editor log file is attached.

    Any hints of where to look for more info about what is causing the error is much appreciated.

    Dell XPS 2720, Windows 10 (14393.1198), GeForce GT 750M
    Unity 2017.1.0f3
    GVR Unity SDK 1.60
    Daydream Renderer 1.0
    Controller Emulator 1.5.01
    Android NDK r10e

    Win32Exception: ApplicationName='C:\Program Files\Unity 5.6\Editor\Data\il2cpp/build/il2cpp.exe', CommandLine='--convert-to-cpp --emit-null-checks --enable-array-bounds-check --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Software\unity\project_standard\Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Software\unity\project_standard\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity 5.6\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity 5.6\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Software/unity/android-ndk-r10e" --map-file-parser="C:\Program Files\Unity 5.6\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --assembly="C:\Software\unity\project_standard\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" --assembly="C:\Software\unity\project_standard\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.UI.dll" --assembly="C:\Software\unity\project_standard\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll" --assembly="C:\Software\unity\project_standard\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.dll" --generatedcppdir="C:\Software\unity\project_standard\Temp\StagingArea\Il2Cpp\il2cppOutput" ', CurrentDirectory='C:\Software\unity\project_standard\Temp\StagingArea\assets\bin\Data\Managed'
     

    Attached Files:

  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,880
    It looks like something might be wrong with the Unity installation. Can you see if the file "C:\Program Files\Unity 5.6\Editor\Data\il2cpp\build\il2cpp.exe" exists on the machine? Maybe it, or one of the files it depends on, was removed.

    It might be worth downloading the same version of Unity again and installing it to a different location on the same machine to check if it is an installation issue.
     
  3. reedny

    reedny

    Joined:
    Mar 4, 2017
    Posts:
    56
    This is odd @JoshPeterson -- the file il2cpp.exe was indeed missing, so I uninstalled Unity and reinstalled. The file il2cpp.exe was there (see before jpg), ran the build, got the same error and Editor log file, and the file il2cpp.exe was now missing (see after jpg). I've also attached a find cmd output for the entire Unity install (UnityDownloadAssistant-2017.1.0p2.exe), which shows just 1 file missing.

    Is that file generated or modified at runtime?
    The only thing I did after uninstall and reboot was to start Unity, load my project, and run a build.

    Thanks for any direction.
     

    Attached Files:

  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,880
    No, that file is not generated and should not be modified. Maybe a virus scanner is incorrectly removing that file. I'm not sure why it would be gone.
     
  5. reedny

    reedny

    Joined:
    Mar 4, 2017
    Posts:
    56
    You're right @JoshPeterson, it is McAfee that is removing il2cpp.exe. Thanks for your help.
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,880
    It looks like there are some extern static declarations in your C# code that do not have an associated native code function in a native library that is linked to the final player.

    For example, the function gb_initGameSignature looks to be missing. If this function should exist in a native library for Android at the architecture you are building, please make sure it is available as a native plugin. If it should not exist, please remove the C# code that references it (probably with an #if statement).
     
  7. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    234
    this gb_initGameSignature ill find on script missing ? i try in multiple mine project and same error , if i build with mono then work
     
  8. mentolatux

    mentolatux

    Joined:
    Nov 2, 2014
    Posts:
    234
    Code (CSharp):
    1. Failed running C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\Xtreme Demolition Arena Derby\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Xtreme Demolition Arena Derby\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/android-ndk-r16b" --map-file-parser="C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\Tools\MapFileParser\MapFileParser.exe" --directory="D:\Xtreme Demolition Arena Derby\Temp\StagingArea\assets\bin\Data\Managed" --generatedcppdir="D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput"
    2.  
    3. stdout:
    4. Building libil2cpp.so with AndroidToolChain
    5.     Output directory: D:\Xtreme Demolition Arena Derby\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
    6.     Cache directory: D:\Xtreme Demolition Arena Derby\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
    7. ObjectFiles: 609 of which compiled: 176
    8.     Time Compile: 12169 milliseconds Il2CppAttributes.cpp
    9.     Time Compile: 11273 milliseconds Bulk_System.Xml_1.cpp
    10.     Time Compile: 10479 milliseconds Il2CppInvokerTable.cpp
    11.     Time Compile: 10011 milliseconds Bulk_Generics_15.cpp
    12.     Time Compile: 9982 milliseconds Bulk_mscorlib_2.cpp
    13.     Time Compile: 9817 milliseconds Bulk_mscorlib_0.cpp
    14.     Time Compile: 9286 milliseconds Bulk_mscorlib_11.cpp
    15.     Time Compile: 9016 milliseconds Bulk_Generics_9.cpp
    16.     Time Compile: 8925 milliseconds Bulk_Generics_8.cpp
    17.     Time Compile: 8906 milliseconds Bulk_System.Xml_4.cpp
    18. Total compilation time: 176035 milliseconds.
    19. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\MSI-PC\AppData\Local\Temp\tmp2CF5.tmp" -o "D:\Xtreme Demolition Arena Derby\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_CC127A95D724AD804EC1478C01AEECAF\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe
    20.  
    21. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26831: error: undefined reference to '_gb_initGameSignature'
    22. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26831: error: undefined reference to '_gb_initGameSignature'
    23. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26905: error: undefined reference to '_gb_gameInitialized'
    24. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26905: error: undefined reference to '_gb_gameInitialized'
    25. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26932: error: undefined reference to '_gb_adRequest'
    26. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26932: error: undefined reference to '_gb_adRequest'
    27. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26971: error: undefined reference to '_gb_analyticsRequest'
    28. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26971: error: undefined reference to '_gb_analyticsRequest'
    29. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27030: error: undefined reference to '_gb_openModuleWindow'
    30. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27030: error: undefined reference to '_gb_openModuleWindow'
    31. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27053: error: undefined reference to '_gb_storyAnimation'
    32. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27053: error: undefined reference to '_gb_storyAnimation'
    33. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27076: error: undefined reference to '_gb_userBilanceCallback'
    34. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27076: error: undefined reference to '_gb_userBilanceCallback'
    35. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27099: error: undefined reference to '_gb_activityPing'
    36. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27099: error: undefined reference to '_gb_activityPing'
    37. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27122: error: undefined reference to '_gb_gameSettings'
    38. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27122: error: undefined reference to '_gb_gameSettings'
    39. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27145: error: undefined reference to '_gb_gameRestart'
    40. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27145: error: undefined reference to '_gb_gameRestart'
    41. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27167: error: undefined reference to '_gb_gameBan'
    42. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27167: error: undefined reference to '_gb_gameBan'
    43. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27194: error: undefined reference to '_gb_openWindow'
    44. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27194: error: undefined reference to '_gb_openWindow'
    45. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27238: error: undefined reference to '_gb_fullscreen'
    46. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27238: error: undefined reference to '_gb_fullscreen'
    47. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    48. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    49. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    50. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    51. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    52.  
    53.  
    54.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    55.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    56.   at il2cpp.Program.DoRun(String[] args)
    57.   at il2cpp.Program.Run(String[] args)
    58.   at il2cpp.Program.Main(String[] args)
    59. stderr:
    60.  
    61. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\android-ndk-r16b\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++ @"C:\Users\MSI-PC\AppData\Local\Temp\tmp2CF5.tmp" -o "D:\Xtreme Demolition Arena Derby\Library\il2cpp_android_armeabi-v7a\il2cpp_cache\linkresult_CC127A95D724AD804EC1478C01AEECAF\libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id --sysroot "C:\android-ndk-r16b\platforms\android-16\arch-arm" -gcc-toolchain "C:\android-ndk-r16b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64" -target armv7-none-linux-androideabi -Wl,--wrap,sigaction -L "C:\android-ndk-r16b\sources\cxx-stl\gnu-libstdc++\4.9\libs\armeabi-v7a" -lgnustl_static -llog -rdynamic -fuse-ld=gold.exe
    62.  
    63. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26831: error: undefined reference to '_gb_initGameSignature'
    64. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26831: error: undefined reference to '_gb_initGameSignature'
    65. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26905: error: undefined reference to '_gb_gameInitialized'
    66. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26905: error: undefined reference to '_gb_gameInitialized'
    67. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26932: error: undefined reference to '_gb_adRequest'
    68. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26932: error: undefined reference to '_gb_adRequest'
    69. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26971: error: undefined reference to '_gb_analyticsRequest'
    70. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:26971: error: undefined reference to '_gb_analyticsRequest'
    71. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27030: error: undefined reference to '_gb_openModuleWindow'
    72. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27030: error: undefined reference to '_gb_openModuleWindow'
    73. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27053: error: undefined reference to '_gb_storyAnimation'
    74. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27053: error: undefined reference to '_gb_storyAnimation'
    75. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27076: error: undefined reference to '_gb_userBilanceCallback'
    76. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27076: error: undefined reference to '_gb_userBilanceCallback'
    77. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27099: error: undefined reference to '_gb_activityPing'
    78. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27099: error: undefined reference to '_gb_activityPing'
    79. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27122: error: undefined reference to '_gb_gameSettings'
    80. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27122: error: undefined reference to '_gb_gameSettings'
    81. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27145: error: undefined reference to '_gb_gameRestart'
    82. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27145: error: undefined reference to '_gb_gameRestart'
    83. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27167: error: undefined reference to '_gb_gameBan'
    84. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27167: error: undefined reference to '_gb_gameBan'
    85. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27194: error: undefined reference to '_gb_openWindow'
    86. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27194: error: undefined reference to '_gb_openWindow'
    87. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27238: error: undefined reference to '_gb_fullscreen'
    88. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_3.cpp:27238: error: undefined reference to '_gb_fullscreen'
    89. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    90. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    91. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    92. D:\Xtreme Demolition Arena Derby\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp_5.cpp:22388: error: undefined reference to 'openWindow'
    93. clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
    94.  
    95.  
    96.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    97.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    98.   at il2cpp.Program.DoRun(String[] args)
    99.   at il2cpp.Program.Run(String[] args)
    100.   at il2cpp.Program.Main(String[] args)
    101.  
    102. UnityEngine.Debug:LogError(Object)
    103. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    104. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    105. UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    106. UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    107. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    108. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    109. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    110.  
    Code (CSharp):
    1. Exception: C:\Program Files\Unity\Hub\Editor\2018.3.14f1\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    2. UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    3. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    4. UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:368)
    5. UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    6. UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
    7. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:35)
    8. UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
    9. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
    10. 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 <3c0b2fdf8ace4ae49f054e74ca773557>:0)
    11. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
    12. 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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
    13. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    14.  
     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    3,880
    Yes, gb_initGameSignature should be in your script code or an assembly in the project. It looks like it is used in a type named HGarterBrowserServices in the managed code.

    This build works with Mono because Mono resolves this dependency at run time. IL2CPP resolved it at build time, hence the error.