Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

OSX: can't build empty project

Discussion in 'Editor & General Support' started by yuriythebest, Jun 10, 2020.

  1. yuriythebest

    yuriythebest

    Joined:
    Nov 21, 2009
    Posts:
    1,029
    Screen Shot 2020-06-10 at 16.11.41.png Hi! I'm using OSX 10.15.2, unity versions 2019.2.17, 2019.4.0 and they give me the error
    (older versions such as unity 2018.4.1 work fine)

    the error occurs when building an empty project to iOS


    Code (CSharp):
    1.  
    2. Failed running /Volumes/SPArmor 1TB/Applications/Unity/Unity.app/Contents/il2cpp/build/deploy/net471/UnityLinker.exe -out="/Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed/tempStrip" -x="/Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x="/Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed/TypesInScenes.xml" -d="/Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="/Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed" --rule-set=Conservative --editor-data-file="/Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json" --platform=iOS --enable-engine-module-stripping --engine-modules-asset-file="/Volumes/SPArmor 1TB/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/../modules.asset"
    3.  
    4. stdout:
    5. Fatal error in Unity CIL Linker
    6. System.IO.IOException: Sharing violation on path /Volumes/SPArmor 1TB/BGS/StickmanBattleSimulatorAjwad/New Unity Project/Temp/StagingArea/Data/Managed/tempStrip/UnityEngine.pdb
    7.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <437ba245d8404784b9fbab9b439ac908>:0
    8.   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
    9.   at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
    10.   at System.IO.File.OpenWrite (System.String path) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
    11.   at Mono.Cecil.Cil.PortablePdbWriterProvider.GetSymbolWriter (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x00012] in <421727e9882f4de49256484b6929de80>:0
    12.   at Mono.Cecil.Cil.DefaultSymbolWriterProvider.GetSymbolWriter (Mono.Cecil.ModuleDefinition module, System.String fileName) [0x0002d] in <421727e9882f4de49256484b6929de80>:0
    13.   at Mono.Cecil.ModuleWriter.GetSymbolWriter (Mono.Cecil.ModuleDefinition module, System.String fq_name, Mono.Cecil.Cil.ISymbolWriterProvider symbol_writer_provider, Mono.Cecil.WriterParameters parameters) [0x0001b] in <421727e9882f4de49256484b6929de80>:0
    14.   at Mono.Cecil.ModuleWriter.Write (Mono.Cecil.ModuleDefinition module, Mono.Disposable`1[T] stream, Mono.Cecil.WriterParameters parameters) [0x000f6] in <421727e9882f4de49256484b6929de80>:0
    15.   at Mono.Cecil.ModuleWriter.WriteModule (Mono.Cecil.ModuleDefinition module, Mono.Disposable`1[T] stream, Mono.Cecil.WriterParameters parameters) [0x00002] in <421727e9882f4de49256484b6929de80>:0
    16.   at Mono.Cecil.ModuleDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00017] in <421727e9882f4de49256484b6929de80>:0
    17.   at Mono.Cecil.AssemblyDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <421727e9882f4de49256484b6929de80>:0
    18.   at Mono.Linker.Steps.OutputStep.WriteAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String directory, Mono.Cecil.WriterParameters writerParameters) [0x0007f] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    19.   at Unity.Linker.Steps.UnityOutputStep.WriteAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String directory, Mono.Cecil.WriterParameters writerParameters) [0x00001] in <460224aafcca4e58b4cbe39a2014f9b8>:0
    20.   at Mono.Linker.Steps.OutputStep.WriteAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String directory) [0x0000b] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    21.   at Mono.Linker.Steps.OutputStep.OutputAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x0007b] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    22.   at Mono.Linker.Steps.OutputStep.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x00001] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    23.   at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00031] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    24.   at Mono.Linker.Pipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x0000e] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    25.   at Unity.Linker.UnityPipeline.ProcessStep (Mono.Linker.LinkContext context, Mono.Linker.Steps.IStep step) [0x00018] in <460224aafcca4e58b4cbe39a2014f9b8>:0
    26.   at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00014] in <0dbc0b3fe9284c9f97315a7dab6f66d4>:0
    27.   at Unity.Linker.UnityDriver.Run () [0x0009b] in <460224aafcca4e58b4cbe39a2014f9b8>:0
    28.   at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling () [0x00007] in <460224aafcca4e58b4cbe39a2014f9b8>:0
    29.   at Unity.Linker.UnityDriver.RunDriver () [0x00002] in <460224aafcca4e58b4cbe39a2014f9b8>:0
    30. stderr:
    31.  
    32. UnityEngine.Debug:LogError(Object)
    33. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:126)
    34. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:71)
    35. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:166)
    36. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:159)
    37. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:301)
    38. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:178)
    39. UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:327)
    40. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:65)
    41. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
    42.  
    43.  
    44.  
    45. Exception: /Volumes/SPArmor 1TB/Applications/Unity/Unity.app/Contents/il2cpp/build/deploy/net471/UnityLinker.exe 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:128)
    47. UnityEditorInternal.Runner.RunManagedProgram (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:71)
    48. UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:166)
    49. UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:159)
    50. UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:301)
    51. UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:178)
    52. UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:327)
    53. 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)
    54. UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.iOS.PostProcessiPhonePlayer+ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:886)
    55. UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.PostProcessiPhonePlayer+BuildSettings bs, UnityEditor.iOS.PostProcessiPhonePlayer+ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:719)
    56. UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.PostProcessorSettings postProcessorSettings, UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:667)
    57. UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:45)
    58. Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    59. UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:49)
    60. UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
    61. 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)
    62. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
    63.  
     
  2. yuriythebest

    yuriythebest

    Joined:
    Nov 21, 2009
    Posts:
    1,029
    no one knows?
     
unityunity