Bug 60078 - FileNotFoundException in Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile() ibtool/SplashController.storyboardc/5-view-6.nib does not exist
Summary: FileNotFoundException in Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile() i...
Status: NEEDINFO
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- critical
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-10 08:11 UTC by TorstenR
Modified: 2017-10-30 20:32 UTC (History)
4 users (show)

Tags:
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 for Bug 60078 on Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.
Related Links:
Status:
NEEDINFO

Description TorstenR 2017-10-10 08:11:31 UTC
# Steps to reproduce
build an iOS.csproj using msbuild on command line.

# Expected behavior
No copy failure(s), successful builds

# Actual behavior
Excerpt from the diagnostic build log file:
...
Creating directory '/Users/developer/Library/Caches/Xamarin/mtbs/builds/Shell.Mobile.XF.iOS/cd61fc3afb02492665cbc2e36554b751/bin/Release/iPhone/InHouse/Our.app/SplashController.storyboardc' (TaskId:8251)
                     Copying file from '/Users/developer/Library/Caches/Xamarin/mtbs/builds/Shell.Mobile.XF.iOS/cd61fc3afb02492665cbc2e36554b751/obj/iPhone/InHouse/ibtool/SplashController.storyboardc/5-view-6.nib' to '/Users/developer/Library/Caches/Xamarin/mtbs/builds/Shell.Mobile.XF.iOS/cd61fc3afb02492665cbc2e36554b751/bin/Release/iPhone/InHouse/Our.app/SplashController.storyboardc/5-view-6.nib' (TaskId:8251)
20:47:38.669   118>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(452,3): error : System.IO.FileNotFoundException: /Users/developer/Library/Caches/Xamarin/mtbs/builds/Shell.Mobile.XF.iOS/cd61fc3afb02492665cbc2e36554b751/obj/iPhone/InHouse/ibtool/SplashController.storyboardc/5-view-6.nib does not exist
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(452,3): error : File name: '/Users/developer/Library/Caches/Xamarin/mtbs/builds/Shell.Mobile.XF.iOS/cd61fc3afb02492665cbc2e36554b751/obj/iPhone/InHouse/ibtool/SplashController.storyboardc/5-view-6.nib'
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(452,3): error :   at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00193] in /private/tmp/source-mono-d15-3/bockbuild-d15-3/profiles/mono-mac-xamarin/build-root/mono-x64/mcs/class/corlib/System.IO/File.cs:111 
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(452,3): error :   at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <bcf80fd6b7fa461db8e6c795fcba4a4a>:0 
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(452,3): error :   at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x00108] in <bcf80fd6b7fa461db8e6c795fcba4a4a>:0 
                     SmartCopy: 2017-10-09T20:47:38.6848288+02:00 - Finished (TaskId:8251)
                   Done executing task "SmartCopy" -- FAILED. (TaskId:8251)

# Supplemental info (logs, images, videos)
There was a similar bug reported at https://bugzilla.xamarin.com/show_bug.cgi?id=42323 and https://bugzilla.xamarin.com/show_bug.cgi?id=44277 - the last stated it was a known issue that should already been fixed. But we use now the latest stable tools (supporting XCode 9.0) and it is still there (the bug).

# Test environment (full version information)
The Build server running msbuild:

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.7.02053

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA287
Microsoft Architecture and Modeling Tools
Visual Basic 2015   00322-80000-00000-AA287
Microsoft Visual Basic 2015
Visual C# 2015   00322-80000-00000-AA287
Microsoft Visual C# 2015
Visual C++ 2015   00322-80000-00000-AA287
Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package   7.18.00214.2
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/
Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
GeneratorWindow Extension   1.0
GeneratorWindow Visual Stuido Extension Detailed Info
JavaScript Language Service   2.0
JavaScript Language Service
JavaScript Project System   2.0
JavaScript Project System
JetBrains ReSharper Ultimate 2017.1.3    Build 108.0.20170613.154143
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.
Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools
Mono Debugging for Visual Studio   4.6.8-pre (ec7034f)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools
TypeScript   1.8.36.0
TypeScript tools for Visual Studio
Visual Studio Tools for Universal Windows Apps   14.0.25527.01
Xamarin   4.7.9.45 (bd7e3753c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android   7.4.5.1 (fb018c5)
Visual Studio extension to enable development for Xamarin.Android.
Xamarin.iOS   11.0.0.0 (152b654)
Visual Studio extension to enable development for Xamarin.iOS.

Test environment: iMac that build the iOS project:
=== Xamarin Studio Community ===
Version 6.3 (build 864)
Installation UUID: 3e873e75-76bc-4a50-89d9-acd129e39c4b
Runtime:
	Mono 5.2.0.224 (d15-3/14f2c81) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000224

=== NuGet ===
Version: 3.5.0.0

=== Xamarin.Profiler ===
Version: 1.5.5
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===
Xcode 9.0 (13247)
Build 9A235

=== Xamarin.iOS ===
Version: 11.0.0.0 (Xamarin Studio Community)
Hash: 152b654a
Branch: xcode9
Build date: 2017-09-15 02:25:56-0400

=== Xamarin.Android ===
Version: 7.4.5.1 (Xamarin Studio Community)
Android SDK: /Users/developer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
		6.0   (API level 23)

SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25.0.1
SDK Build Tools Version: 25.0.1

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin.Mac ===
Version: 3.6.3.3 (Xamarin Studio Community)

=== Xamarin Inspector ===
Version: 1.3.2
Hash: 461f09a
Branch: 1.3-release
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1

=== Build Information ===
Release ID: 603000864
Git revision: 6c2f6737278ccc3e81e12276d49c0d92f975f189
Build date: 2017-04-24 11:26:01-04
Xamarin addins: d8d46e577d8507c35260ce9d73df3c33415bb214
Build lane: monodevelop-lion-d15-1

=== Operating System ===

Mac OS X 10.12.6
Darwin imac01.lan.procos.com 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Comment 1 Emanuel 2017-10-30 20:32:51 UTC
Hi Torsten,
I've been trying to reproduce this issue with no luck, so I'll need some help from you. The version you're using contains the fix for bug 44277.

First, I have a couple of questions:
1) Are you hitting this issue every single time you try to build an iOS project?
2) Could you try with a new project? Just to islote the issue
3) Did you try with our latest stable version (4.7.10.22)? 
4) Could you try deleting the build app folder on the Mac (~/Library/Caches/Xamarin/mtbs/builds/Shell.Mobile.XF.iOS)? 

Besides these questions, could you upload a full detailed build log? and could upload a sample project where you are able to reproce this bug? It would be really helpful to diagnose it.

Thanks for reporting!