Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Build works on PC but not Mac. Library C error. MacOS version renamed

Discussion in 'macOS' started by MZEBRA, Nov 25, 2023.

  1. MZEBRA

    MZEBRA

    Joined:
    Jul 11, 2020
    Posts:
    3
    hi! I have been having the following 6 errors when I build my game on a Mac. Please note I am using The game builds no problem on PC. I downloaded Xcode. Not sure if I am missing anything else. I attached an image or errors shown below.
    Thank you! I have been stuck on this one for a bit.

    -macosx_version_min has been renamed to -macos_version_min
    ld: library 'c' not found

    BuildFailedException: Burst compiler (1.2.3) failed running

    stdout:
    The native link step failed. Check previous exception in the log - linker command line : "xcrun --sdk macosx ld -macosx_version_min 10.8 -o "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated.bundle" -dylib "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_3.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_0.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_2.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_1.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_4.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_7.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_5.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_6.o" "/var/folders/87/jwrffj3d4h7bz792njkv5l180000gn/T/burst-aot56n4dqgs.ypz/lib_burst_generated_part_8.o" -lc -lm"
    stderr:
    -macosx_version_min has been renamed to -macos_version_min
    ld: library 'c' not found

    Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.2.3/Editor/BurstAotCompiler.cs:752)
    Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.2.3/Editor/BurstAotCompiler.cs:690)
    Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.2.3/Editor/BurstAotCompiler.cs:664)
    Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.2.3/Editor/BurstAotCompiler.cs:332)
    Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.2.3/Editor/BurstAotCompiler.cs:90)
    UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:487)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
    Error building Player: 3 errors
    Build completed with a result of 'Failed' in 484 seconds (483532 ms)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 6 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002af] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194
    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:197)
     

    Attached Files: