Search Unity

UnityEngine.TestRunner.pdb Sharing violation

Discussion in 'iOS and tvOS' started by yuriythebest, Feb 28, 2021.

  1. yuriythebest

    yuriythebest

    Joined:
    Nov 21, 2009
    Posts:
    1,125
    Screenshot 2021-02-28 at 17.52.22.png Hi! When working on my project on windows everything is fine, but when I opened it on OSX I get these errors:



    Code (CSharp):
    1. Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
    2. Copyright (C) Microsoft Corporation. All rights reserved.
    3.  
    4. error CS2012: Cannot open '/Volumes/SPArmor 1TB/BGS/UnicornRace/UnicornRunIOS/Temp/UnityEngine.TestRunner.pdb' for writing -- 'Sharing violation on path /Volumes/SPArmor 1TB/BGS/UnicornRace/UnicornRunIOS/Temp/UnityEngine.TestRunner.pdb'
    5.  
    6.  
    7. Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
    8. Copyright (C) Microsoft Corporation. All rights reserved.
    9.  
    10. error CS2012: Cannot open '/Volumes/SPArmor 1TB/BGS/UnicornRace/UnicornRunIOS/Temp/UnityEngine.UI.pdb' for writing -- 'Sharing violation on path /Volumes/SPArmor 1TB/BGS/UnicornRace/UnicornRunIOS/Temp/UnityEngine.UI.pdb'
    I'm using unity 2020.1.3
    any ideas?
     
    macagu likes this.
  2. yuriythebest

    yuriythebest

    Joined:
    Nov 21, 2009
    Posts:
    1,125
    please help!
     
  3. macagu

    macagu

    Joined:
    Sep 30, 2012
    Posts:
    9
    I'm experiencing the same issue. There are 2 compiler errors on these files:


    Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
    Copyright (C) Microsoft Corporation. All rights reserved.
    error CS2012: Cannot open '/blabla/Temp/UnityEngine.TestRunner.pdb' for writing -- 'Sharing violation on path /blabla/Temp/UnityEngine.TestRunner.pdb'


    Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
    Copyright (C) Microsoft Corporation. All rights reserved.
    error CS2012: Cannot open '/blabla/Temp/UnityEngine.UI.pdb' for writing -- 'Sharing violation on path /blabla/Temp/UnityEngine.UI.pdb'


    Seems related to external storage disk permissions.
     
  4. macagu

    macagu

    Joined:
    Sep 30, 2012
    Posts:
    9
    Problem solved by formatting to APFS or Mac OS Extended.
     
  5. yuriythebest

    yuriythebest

    Joined:
    Nov 21, 2009
    Posts:
    1,125
    it's good that this is a solution,but this would mean me having to buy another external HDD, is there no other way?