IL2CPP MacStandalone and Xcode 11.4

It has come to our attention that with the most recent release of Xcode (11.4) users have been encountering issues when compiling IL2CPP for our Mac Standalone product.

Specifically:

Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
__ZN6il2cpp2os7Console20InternalKeyAvailableEi in FB9D2F4282A1EDB4A3C7BD6B854A08B4.o
ld: symbol(s) not found for architecture x86_64

We have identified this as an issue with Xcode 11.4 which has made some internal changes to how certain functions are exposed to developers, and how this interacts with compiling on older versions of macOS 10.15 (earlier than 10.15.4).

It is our recommendation that if Xcode 11.4 is required for you to compile your project that you upgrade to the latest version of MacOS 10.15(10.15.4) as this will resolve the compilation issues.

We apologize for this disruption and inconvenience.

2 Likes

Thanks for the clarification!

But we also facing troubles compiling our project for iOS 13.4 with Xcode 11.4 getting 2k+ of warnings and being stuck at “Linking” phase. Please, take a look at this thread: Declaration does not declare anything (Xcode 11.4)

At the same time, everything is fine in case we use Xcode 11.3…

I updated to MacOS 10.15.6. and I can’t build. This is what I get:

Failed running /Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile=“unityaot” --compile-cpp --libil2cpp-static --platform=“MacOSX” --architecture=“x64” --configuration=“Release” --outputpath=“/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/Native/GameAssembly.dylib” --cachedirectory=“/Applications/Unity/Leikir/PANDU/Assets/…/Library/il2cpp_cache” --avoid-dynamic-library-copy --baselib-directory=“/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/Variations/macosx64_nondevelopment_il2cpp” --profiler-report --map-file-parser=“/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser” --directory=“/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/Managed” --generatedcppdir=“/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput”

stdout:
Running il2cpp.exe in workstation GC mode.
Building GameAssembly.dylib with ClangToolChain
Mac Dev SDK: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

Output directory: /Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/Native
Cache directory: /Applications/Unity/Leikir/PANDU/Library/il2cpp_cache
il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: fatal error: file ‘/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp/utils/StringViewUtils.h’ has been modified since the precompiled header ‘/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp.gch’ was built: mtime changed
note: please rebuild precompiled header ‘/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp.gch’
1 error generated.

Invocation was: Executable: /usr/bin/clang++
Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DTARGET_MACH -DPLATFORM_MACOSX -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/OSX/Include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput" -I"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include" -g -c -fvisibility=hidden -fno-strict-overflow -O3 -mmacosx-version-min=10.8 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/malloc -mcx16 -fexceptions -std=c++11 -stdlib=libc++ -include “/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp” “/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput/Assembly-CSharp1.cpp” -o “/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/952CE5755A6B177746BCBB1D530A2AFE.o”

at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001c2] in <169a25e611e04f33970848e9e53795fe>:0
at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001ed] in <169a25e611e04f33970848e9e53795fe>:0
at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <169a25e611e04f33970848e9e53795fe>:0
at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x001fd] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.DoRun (System.String[ ] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.Run (System.String[ ] args, System.Boolean setInvariantCulture) [0x00063] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.Main (System.String[ ] args) [0x00000] in <3be9f628f5fa469389bd6a91a579ba8a>:0
stderr:

Unhandled Exception:
Unity.IL2CPP.Building.BuilderFailedException: fatal error: file ‘/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp/utils/StringViewUtils.h’ has been modified since the precompiled header ‘/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp.gch’ was built: mtime changed
note: please rebuild precompiled header ‘/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp.gch’
1 error generated.

Invocation was: Executable: /usr/bin/clang++
Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DTARGET_MACH -DPLATFORM_MACOSX -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/OSX/Include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput" -I"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include" -g -c -fvisibility=hidden -fno-strict-overflow -O3 -mmacosx-version-min=10.8 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/malloc -mcx16 -fexceptions -std=c++11 -stdlib=libc++ -include “/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp” “/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput/Assembly-CSharp1.cpp” -o “/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/952CE5755A6B177746BCBB1D530A2AFE.o”

at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001c2] in <169a25e611e04f33970848e9e53795fe>:0
at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001ed] in <169a25e611e04f33970848e9e53795fe>:0
at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <169a25e611e04f33970848e9e53795fe>:0
at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x001fd] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.DoRun (System.String[ ] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.Run (System.String[ ] args, System.Boolean setInvariantCulture) [0x00063] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.Main (System.String[ ] args) [0x00038] in <3be9f628f5fa469389bd6a91a579ba8a>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Unity.IL2CPP.Building.BuilderFailedException: fatal error: file ‘/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp/utils/StringViewUtils.h’ has been modified since the precompiled header ‘/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp.gch’ was built: mtime changed
note: please rebuild precompiled header ‘/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp.gch’
1 error generated.

Invocation was: Executable: /usr/bin/clang++
Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DTARGET_MACH -DPLATFORM_MACOSX -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/external/baselib/Platforms/OSX/Include" -I"/Applications/Unity/Hub/Editor/2020.1.3f1/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput" -I"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include" -g -c -fvisibility=hidden -fno-strict-overflow -O3 -mmacosx-version-min=10.8 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/malloc -mcx16 -fexceptions -std=c++11 -stdlib=libc++ -include “/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/71F46ACBA59F51E06FC17EA399110299.hpp” “/Applications/Unity/Leikir/PANDU/Temp/StagingArea/Data/il2cppOutput/Assembly-CSharp1.cpp” -o “/Applications/Unity/Leikir/PANDU/Library/il2cpp_cache/952CE5755A6B177746BCBB1D530A2AFE.o”

at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles (System.Collections.Generic.IEnumerable`1[T] sourceFilesToCompile, Unity.IL2CPP.Building.Statistics.IBuildStatisticsCollector statisticsCollector) [0x001c2] in <169a25e611e04f33970848e9e53795fe>:0
at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x001ed] in <169a25e611e04f33970848e9e53795fe>:0
at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <169a25e611e04f33970848e9e53795fe>:0
at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x001fd] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.DoRun (System.String[ ] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.Run (System.String[ ] args, System.Boolean setInvariantCulture) [0x00063] in <3be9f628f5fa469389bd6a91a579ba8a>:0
at il2cpp.Program.Main (System.String[ ] args) [0x00038] in <3be9f628f5fa469389bd6a91a579ba8a>:0

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:146)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List1, Action1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:531) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:509) UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:342) UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:72)
DesktopStandalonePostProcessor:SetupStagingArea(BuildPostProcessArgs, HashSet`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/DesktopStandalonePostProcessor.cs:223)
DesktopStandalonePostProcessor:PostProcess(BuildPostProcessArgs) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/DesktopStandalonePostProcessor.cs:42)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:124)

1 Like