Bug 317 - iPhone: tries to incorrectly copy files.
Summary: iPhone: tries to incorrectly copy files.
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: PC Mac OS
: --- blocker
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2011-08-17 18:54 UTC by Miguel de Icaza [MSFT]
Modified: 2011-08-19 11:46 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Miguel de Icaza [MSFT] 2011-08-17 18:54:44 UTC
If you try to build TweetStation, you will get this error:

Copying content files
Copying '/Users/miguel/Projects/TweetStation/TweetStation/Icon@2x.png' to '/Users/miguel/Projects/TweetStation/TweetStation/Icon@2x.png'

Build failed. Sharing violation on path /Users/miguel/Projects/TweetStation/TweetStation/Icon@2x.png" or "/Users/miguel/Projects/TweetStation/TweetStation/Icon@2x.png

It is trying to copy the file over itself, instead of copying it to the target location.

Steps to reproduce, check out these two modules, side-by-side:

git clone https://migueldeicaza@github.com/migueldeicaza/MonoTouch.Dialog.git
git clone https://migueldeicaza@github.com/migueldeicaza/TweetStation.git

Open the TweetStation.sln file, then try to build for iPhone.
Comment 1 Mike Krüger 2011-08-19 04:28:27 UTC
Works for me - can you reproduce it ?

Was there any stack trace on the console (run with make run) or in the message log  ?
Comment 2 Miguel de Icaza [MSFT] 2011-08-19 07:32:48 UTC
There is no stack trace, the message says "File sharing violation", on close inspection, the error is that it is trying to copy the file over itself.
Comment 3 Miguel de Icaza [MSFT] 2011-08-19 11:46:31 UTC