Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
My project has some non writable files (because of version control), these prevent the xcode syncing with the following error:
Error updating Xcode project. Access to the path "/Users/jackson/Projects/edictate/edictate/eDictate3/obj/Xcode/5/Icon.png" is denied.
System.UnauthorizedAccessException: Access to the path "/Users/jackson/Projects/edictate/edictate/eDictate3/obj/Xcode/5/Icon.png" is denied.
at System.IO.File.SetLastWriteTime (System.String path, DateTime lastWriteTime) [0x00000] in <filename unknown>:0
at MonoDevelop.MacDev.XcodeSyncing.XcodeSyncedContent.SyncOut (MonoDevelop.MacDev.XcodeSyncing.XcodeSyncContext context) [0x0007c] in /Users/builder/data/lanes/monodevelop-mac-22.214.171.124/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeSyncedContent.cs:67
at MonoDevelop.MacDev.XcodeSyncing.XcodeMonitor.UpdateProject (IProgressMonitor monitor, System.Collections.Generic.List`1 allItems, MonoDevelop.MacDev.XcodeIntegration.XcodeProject emptyProject) [0x00324] in /Users/builder/data/lanes/monodevelop-mac-126.96.36.199/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeMonitor.cs:137
at MonoDevelop.MacDev.XcodeSyncing.XcodeProjectTracker.UpdateXcodeProject (IProgressMonitor monitor) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-188.8.131.52/c83797ae/source/monodevelop/main/src/addins/MonoDevelop.MacDev/XcodeSyncing/XcodeProjectTracker.cs:318
FWIW, this makes MT pretty difficult to use with TFS.
This *might* be fixed now that we don't call File.SetLastWriteTime() anymore...
Strange that the File.Copy() worked but the File.SetLastWriteTime() failed immediately after that. If the unauthed access exception is just due to the SetLastWriteTime(), then this won't be an issue anymore.
Jackson: is this still an issue? If so, what version are you using these days?
Not sure if its still an issue, I had to make all my files writable. Should be easy enough to test though. Just make a .png in a project readonly and try clean/build/build.
This issue has been fixed in master for sure. I was testing by removing write access for all files/directories in my solution and trying to build/rebuild/sync to xcode. This all works now. These changes will probably not make the deadline for the next 2.8.8.x release but should be in the release after that.