Jump to content


(Minor) Read-only libp4bridge.dylib causes an exception on startup when upgrading on Mac

p4Connect Mac upgrading

  • Please log in to reply
1 reply to this topic

#1 rtande

rtande

    Member

  • Members
  • PipPip
  • 19 posts
  • LocationBay Area, California

Posted 01 September 2015 - 04:49 PM

Our project was upgraded from p4Connect version 2.7 GA.9 Release to 2015.2.122.0542 and this caused an exception to be thrown when starting Unity on Mac because the p4bridge.dylib file was read-only. (We keep our version of p4Connect in Perforce and Unity copies the p4bridge.dylib to the root of the project on startp if it is not already there)


The fix was to make the p4bridge.dylib file in the root of the project read-write.

UnauthorizedAccessException: Access to the path "/Users/rajantande/Dev/Assets/P4Connect/Editor/x86_64/libp4bridge.dylib" or "/Users/rajantande/Dev/libp4bridge.dylib" is denied.
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:124)
P4Connect.Main.SetDLLDirectory () (at c:/tmp/55955055/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Main.cs:203)
P4Connect.Main.Initialize () (at c:/tmp/55955055/depot/main/p4-connect/src/P4Connect/P4Connect/P4Connect.Main.cs:82)

#2 P4Norman

P4Norman

    Advanced Member

  • Staff
  • 81 posts
  • LocationOakland CA, USA

Posted 17 November 2015 - 01:58 AM

Good report,  I should check for properties before running the upgrade.  I'll file a bug for this.





Also tagged with one or more of these keywords: p4Connect, Mac, upgrading

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users