Search Unity

[Solved]Failed running error for building to android device with IL2CPP enabled.

Discussion in 'Scripting' started by sskenth, Feb 8, 2020.

  1. sskenth

    sskenth

    Joined:
    Sep 23, 2016
    Posts:
    50
    My NDK, android, jdk etc is all set to the default HUB settings. I've also tried changing the NDK based on some forums posts I've read. I still similar errors and a failure to build to android device.

    Please see the errors below. I can't seem to understand how building with IL2CPP doesnt work on an official version, mono does build to my device but I cant submit to Google play store with that.
    Edit : I should add it does work out the box for other projects just not this one so it must be a package,asset etc thats caused this.

    For the default NDKHub build settings error is:

    Code (CSharp):
    1.  
    2. Failed running /Applications/UnityEditors/2019.3.0f6/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/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/NDK" --enable-debugger --profiler-report --map-file-parser="/Applications/UnityEditors/2019.3.0f6/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput"
    3.  
    4. stdout:
    5. Building libil2cpp.so with AndroidToolChain
    6.     Output directory: /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    7.     Cache directory: /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Library/il2cpp_android_armeabi-v7a/il2cpp_cache
    8. ObjectFiles: 431 of which compiled: 0
    9. Total compilation time: 158 milliseconds.
    10. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: /Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ @"/var/folders/sf/r05jbd394szb5by2znbj388c0000gn/T/tmpULNdlD.tmp" -o "/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/linkresult_00A23DD80881543237027EE789D44C8B/libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold
    11.  
    12. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21489: error: undefined reference to 'UnityMC_Delegate_getEnabled'
    13. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21489: error: undefined reference to 'UnityMC_Delegate_getEnabled'
    14. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21479: error: undefined reference to 'UnityMC_Delegate_setEnabled'
    15. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21479: error: undefined reference to 'UnityMC_Delegate_setEnabled'
    16. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21435: error: undefined reference to 'UnityMC_Delegate_initWithName'
    17. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23362: error: undefined reference to 'UnityMC_NSString_createWithString'
    18. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21435: error: undefined reference to 'UnityMC_Delegate_initWithName'
    19. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21424: error: undefined reference to 'UnityMC_Delegate_sendToAllPeers'
    20. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21424: error: undefined reference to 'UnityMC_Delegate_sendToAllPeers'
    21. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21446: error: undefined reference to 'UnityMC_Delegate_receivedDataQueueSize'
    22. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21446: error: undefined reference to 'UnityMC_Delegate_receivedDataQueueSize'
    23. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21457: error: undefined reference to 'UnityMC_Delegate_dequeueReceivedData'
    24. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21457: error: undefined reference to 'UnityMC_Delegate_dequeueReceivedData'
    25. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21468: error: undefined reference to 'UnityMC_Delegate_connectedPeerCount'
    26. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21468: error: undefined reference to 'UnityMC_Delegate_connectedPeerCount'
    27. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23466: error: undefined reference to 'UnityMC_CFRelease'
    28. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22070: error: undefined reference to 'UnityMC_NSData_getLength'
    29. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22070: error: undefined reference to 'UnityMC_NSData_getLength'
    30. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22092: error: undefined reference to 'UnityMC_NSData_createWithBytes'
    31. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22092: error: undefined reference to 'UnityMC_NSData_createWithBytes'
    32. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22103: error: undefined reference to 'UnityMC_NSData_createWithBytesNoCopy'
    33. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22103: error: undefined reference to 'UnityMC_NSData_createWithBytesNoCopy'
    34. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22081: error: undefined reference to 'UnityMC_NSData_getBytes'
    35. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22070: error: undefined reference to 'UnityMC_NSData_getLength'
    36. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22081: error: undefined reference to 'UnityMC_NSData_getBytes'
    37. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22581: error: undefined reference to 'UnityMC_NSError_code'
    38. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22592: error: undefined reference to 'UnityMC_NSError_localizedDescription'
    39. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22581: error: undefined reference to 'UnityMC_NSError_code'
    40. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22592: error: undefined reference to 'UnityMC_NSError_localizedDescription'
    41. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23373: error: undefined reference to 'UnityMC_NSString_lengthOfBytesUsingEncoding'
    42. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23395: error: undefined reference to 'UnityMC_NSString_getBytes'
    43. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23362: error: undefined reference to 'UnityMC_NSString_createWithString'
    44. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23417: error: undefined reference to 'UnityMC_NSString_deserialize'
    45. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23417: error: undefined reference to 'UnityMC_NSString_deserialize'
    46. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23384: error: undefined reference to 'UnityMC_NSString_getLength'
    47. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23384: error: undefined reference to 'UnityMC_NSString_getLength'
    48. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23373: error: undefined reference to 'UnityMC_NSString_lengthOfBytesUsingEncoding'
    49. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23395: error: undefined reference to 'UnityMC_NSString_getBytes'
    50. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23406: error: undefined reference to 'UnityMC_NSString_serialize'
    51. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23406: error: undefined reference to 'UnityMC_NSString_serialize'
    52. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23466: error: undefined reference to 'UnityMC_CFRelease'
    53. clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    54.  
    55.  
    56.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    57.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    58.   at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    59.   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    60.   at il2cpp.Program.Main(String[] args)
    61. stderr:
    62.  
    63. Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: /Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ @"/var/folders/sf/r05jbd394szb5by2znbj388c0000gn/T/tmpULNdlD.tmp" -o "/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/linkresult_00A23DD80881543237027EE789D44C8B/libil2cpp.so" -shared -Wl,-soname,libil2cpp.so -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id -stdlib=libc++ -static-libstdc++ -target armv7-linux-androideabi19 -Wl,--wrap,sigaction -llog -rdynamic -fuse-ld=gold
    64.  
    65. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21489: error: undefined reference to 'UnityMC_Delegate_getEnabled'
    66. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21489: error: undefined reference to 'UnityMC_Delegate_getEnabled'
    67. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21479: error: undefined reference to 'UnityMC_Delegate_setEnabled'
    68. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21479: error: undefined reference to 'UnityMC_Delegate_setEnabled'
    69. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21435: error: undefined reference to 'UnityMC_Delegate_initWithName'
    70. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23362: error: undefined reference to 'UnityMC_NSString_createWithString'
    71. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21435: error: undefined reference to 'UnityMC_Delegate_initWithName'
    72. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21424: error: undefined reference to 'UnityMC_Delegate_sendToAllPeers'
    73. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21424: error: undefined reference to 'UnityMC_Delegate_sendToAllPeers'
    74. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21446: error: undefined reference to 'UnityMC_Delegate_receivedDataQueueSize'
    75. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21446: error: undefined reference to 'UnityMC_Delegate_receivedDataQueueSize'
    76. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21457: error: undefined reference to 'UnityMC_Delegate_dequeueReceivedData'
    77. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21457: error: undefined reference to 'UnityMC_Delegate_dequeueReceivedData'
    78. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21468: error: undefined reference to 'UnityMC_Delegate_connectedPeerCount'
    79. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:21468: error: undefined reference to 'UnityMC_Delegate_connectedPeerCount'
    80. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:23466: error: undefined reference to 'UnityMC_CFRelease'
    81. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22070: error: undefined reference to 'UnityMC_NSData_getLength'
    82. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22070: error: undefined reference to 'UnityMC_NSData_getLength'
    83. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22092: error: undefined reference to 'UnityMC_NSData_createWithBytes'
    84. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22092: error: undefined reference to 'UnityMC_NSData_createWithBytes'
    85. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22103: error: undefined reference to 'UnityMC_NSData_createWithBytesNoCopy'
    86. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput/Assembly-CSharp19.cpp:22103: error: undefined reference to 'UnityMC_NSData_createWithBytesNoCopy'
    87. /Users/satwant/Documents/Work/Transmira/Unity/Small Demos<message truncated>

    If I change the NDK to one from android online
    The error changes slightly. I'm not sure if that will help anyone at Unity to advise on this.
    Pkg.Desc = Android NDK
    Pkg.Revision = 19.0.5232133

    Code (CSharp):
    1. My own ndk directory r19 aswell
    2.  
    3. Failed running /Applications/UnityEditors/2019.3.0f6/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/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/Applications/UnityEditors/2019.3.0f6/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/Users/satwant/Documents/Work/Transmira/Unity/NDK/android-ndk-r19" --enable-debugger --profiler-report --map-file-parser="/Applications/UnityEditors/2019.3.0f6/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/Il2Cpp/il2cppOutput"
    4.  
    5. stdout:
    6. Building libil2cpp.so with AndroidToolChain
    7.     Output directory: /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a
    8.     Cache directory: /Users/satwant/Documents/Work/Transmira/Unity/Small Demos/FirebaseLogIn/Library/il2cpp_android_armeabi-v7a/il2cpp_cache
    9. 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) (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
    10.   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)
    11.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    12.   at System.Diagnostics.Process.Start()
    13.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    14.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    15.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    16.   --- End of inner exception stack trace ---
    17.   at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    18.   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    19.   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    20.   at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    21.   at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    22.   at il2cpp.Program.Main(String[] args)
    23. ---> (Inner Exception #0) System.ComponentModel.Win32Exception (2): No such file or directory
    24.   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)
    25.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    26.   at System.Diagnostics.Process.Start()
    27.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    28.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    29.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    30.  
    31. ---> (Inner Exception #1) System.ComponentModel.Win32Exception (2): No such file or directory
    32.   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)
    33.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    34.   at System.Diagnostics.Process.Start()
    35.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    36.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    37.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    38.  
    39. ---> (Inner Exception #2) System.ComponentModel.Win32Exception (2): No such file or directory
    40.   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)
    41.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    42.   at System.Diagnostics.Process.Start()
    43.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    44.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    45.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    46.  
    47. ---> (Inner Exception #3) System.ComponentModel.Win32Exception (2): No such file or directory
    48.   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)
    49.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    50.   at System.Diagnostics.Process.Start()
    51.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    52.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    53.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    54.  
    55. ---> (Inner Exception #4) System.ComponentModel.Win32Exception (2): No such file or directory
    56.   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)
    57.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    58.   at System.Diagnostics.Process.Start()
    59.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    60.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    61.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    62.  
    63. ---> (Inner Exception #5) System.ComponentModel.Win32Exception (2): No such file or directory
    64.   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)
    65.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    66.   at System.Diagnostics.Process.Start()
    67.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    68.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    69.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    70.  
    71. ---> (Inner Exception #6) System.ComponentModel.Win32Exception (2): No such file or directory
    72.   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)
    73.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    74.   at System.Diagnostics.Process.Start()
    75.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    76.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    77.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    78.  
    79. ---> (Inner Exception #7) System.ComponentModel.Win32Exception (2): No such file or directory
    80.   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)
    81.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    82.   at System.Diagnostics.Process.Start()
    83.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    84.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    85.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    86.  
    87. ---> (Inner Exception #8) System.ComponentModel.Win32Exception (2): No such file or directory
    88.   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)
    89.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    90.   at System.Diagnostics.Process.Start()
    91.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    92.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    93.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    94.  
    95. ---> (Inner Exception #9) System.ComponentModel.Win32Exception (2): No such file or directory
    96.   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)
    97.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    98.   at System.Diagnostics.Process.Start()
    99.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    100.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    101.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    102.  
    103. ---> (Inner Exception #10) System.ComponentModel.Win32Exception (2): No such file or directory
    104.   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)
    105.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    106.   at System.Diagnostics.Process.Start()
    107.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    108.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    109.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    110.  
    111. ---> (Inner Exception #11) System.ComponentModel.Win32Exception (2): No such file or directory
    112.   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)
    113.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    114.   at System.Diagnostics.Process.Start()
    115.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    116.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    117.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    118.  
    119. ---> (Inner Exception #12) System.ComponentModel.Win32Exception (2): No such file or directory
    120.   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)
    121.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    122.   at System.Diagnostics.Process.Start()
    123.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    124.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    125.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    126.  
    127. ---> (Inner Exception #13) System.ComponentModel.Win32Exception (2): No such file or directory
    128.   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)
    129.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    130.   at System.Diagnostics.Process.Start()
    131.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    132.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    133.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    134.  
    135. ---> (Inner Exception #14) System.ComponentModel.Win32Exception (2): No such file or directory
    136.   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)
    137.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    138.   at System.Diagnostics.Process.Start()
    139.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    140.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    141.   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    142.  
    143. ---> (Inner Exception #15) System.ComponentModel.Win32Exception (2): No such file or directory
    144.   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)
    145.   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
    146.   at System.Diagnostics.Process.Start()
    147.   at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    148.   at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(Inte<message truncated>

    Please let me know how this can be fixed.

    Thank you
     
    Last edited: Feb 8, 2020
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    18,949
    Based on googling the first identifier in your error log above,
    UnityMC_Delegate_getEnabled
    , I speculate it's related to your AR stuff. Put the above identifier into Google and you might find some answers on forums targeted towards AR packages, or else perhaps ask in the AR/XR/VR forum, as someone might be more familiar there.
     
    sskenth likes this.
  3. sskenth

    sskenth

    Joined:
    Sep 23, 2016
    Posts:
    50
    Thank you that gave me enough info to search through some scripts. I realised I had some ARKIT scripts in there which must have been causing the issue.

    Appreciate the help
     
    Kurt-Dekker likes this.
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    18,949
    Good to know, glad you're operating again. Thanks for following up and marking it Solved. Hopefully Google will pick it up to save time for future searchers!
     
    sskenth likes this.
unityunity