Bug 30241 - Frequent build errors due to iTunesMetadata.plist
Summary: Frequent build errors due to iTunesMetadata.plist
Status: RESOLVED DUPLICATE of bug 29989
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-05-19 16:11 UTC by Jason Smith [MSFT]
Modified: 2015-05-26 13:02 UTC (History)
5 users (show)

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


Attachments
Diagnostic build output (108.54 KB, text/plain)
2015-05-19 19:20 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


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 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:
Status:
RESOLVED DUPLICATE of bug 29989

Description Jason Smith [MSFT] 2015-05-19 16:11:56 UTC
https://gist.github.com/jassmith/fc373416d386bb3cc184

Happens every other build or so. Check out the Xamarin.Forms source to repro.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2015-05-19 19:20:21 UTC
Created attachment 11249 [details]
Diagnostic build output

## Steps to reproduce 100% of the time with any Unified API iOS app project on either Mac or Windows

1. Ensure the current configuration has the `BuildIpa` property set to `true` in the `.csproj` (add it to the configuration if needed).

2. Build the app once. It will successfully create the `.ipa`.

3. Add a "junk" line like `var foo = 10` to any of the `.cs` files, or change a value in the `Info.plist` like the "Build" number.

4. Build the app again. (Do not clean the project before building.)




## Result

The "Move" task fails when running the "_CreateIpa" target during the second build in step 4.

> Task "Move"
>         Using task Move from Xamarin.MacDev.Tasks.Move, Xamarin.MacDev.Tasks, Version=1.0.5612.15789, Culture=neutral, PublicKeyToken=null
> /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Failed to move 'obj/iPhone/Release/ipa/Payload/UnifiedSingleViewIphone1.app/iTunesMetadata.plist' to 'obj/iPhone/Release/ipa/iTunesMetadata.plist': Win32 IO returned ERROR_ALREADY_EXISTS. Path: 
> Task "Move" execution -- FAILED




## Manual workaround

Delete the conflicting destination file `obj/iPhone/Release/ipa/iTunesMetadata.plist` and repeat step 4.
Comment 3 Peter Collins 2015-05-26 13:02:52 UTC

*** This bug has been marked as a duplicate of bug 29989 ***