Bug 28299 - [XVS.iOS 3.9 SR3] XIB files and BundleResources within iOS Class Libraries where project name contains "." period characters cause "Cannot copy ... as the source file doesn't exist"
Summary: [XVS.iOS 3.9 SR3] XIB files and BundleResources within iOS Class Libraries wh...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.9
Hardware: PC Windows
: High major
Target Milestone: 3.9.3
Assignee: Adrian Alonso
URL:
Depends on:
Blocks:
 
Reported: 2015-03-21 23:23 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2015-04-02 16:04 UTC (History)
9 users (show)

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


Attachments
Test case (19.82 KB, application/zip)
2015-03-21 23:23 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details
Log files (68.38 KB, application/zip)
2015-03-21 23:34 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 FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2015-03-21 23:23:47 UTC
Created attachment 10444 [details]
Test case

[XVS.iOS 3.9 SR3] XIB files and BundleResources within iOS Class Libraries where project name contains "." period characters cause "Cannot copy ... as the source file doesn't exist"


This is closely related to bug 27665, but it is a slightly different problem, and this particular problem only started in Service Release 3, whereas bug 27665 started with the first stable release of XVS 3.9 in January.



## Regression status: REGRESSION between 3.9.483 (WatchKit) and 3.9.523 (Service Release 3)

BAD:  Xamarin   3.9.530.0 (77c6c15) + Xamarin.iOS 8.8.2.2 (f5d0c5e)
BAD:  Xamarin   3.9.523.0 (d58edc4) + Xamarin.iOS 8.8.1.9 (7e1f69e)
GOOD: Xamarin   3.9.483.0 (978be3d) + Xamarin.iOS 8.8.0.2 (ccfcd59)



## Steps to reproduce

1. Open the attached test case in Visual Studio. (This is just a new template Single View iPhone project and a new template iOS Class Library, with a new template view controller added to the class library.)

2. Ensure Visual Studio is paired with the build host.

3. Build the "UnifiedSingleViewIphone1" app in the "Debug|iPhoneSimulator" configuration.



### Error from the "Error List" window

> Cannot copy
> /Volumes/Cases/macuser/Library/Caches/Xamarin/mtbs/builds/
> Unified.ClassLibrary.iOS1/90bd7e9fdce6687ffd55505eb741d04f/
> obj/Debug/ibtool/IPhoneViewController1.nib
>
> to
>
> /Volumes/Cases/macuser/Library/Caches/Xamarin/mtbs/builds/
> UnifiedSingleViewIphone1/759b026e59a594d202d7155a1c9bb8c9/
> bin/iPhoneSimulator/Debug/UnifiedSingleViewIphone1.app/IPhoneViewController1.nib,
>
> as the source file doesn't exist.


Note the "." period characters in the project name part of source folder.


### The build host _does_ have a copy of the `nib` file, but the folder name does _not_ contain "." period characters

> $ find ~/Library/Caches/Xamarin/mtbs/builds/UnifiedClassLibraryiOS1/90bd7e9fdce6687ffd55505eb741d04f -name "*.nib" 
> /Users/macuser/Library/Caches/Xamarin/mtbs/builds/UnifiedClassLibraryiOS1/90bd7e9fdce6687ffd55505eb741d04f/obj/Debug/ibtool/IPhoneViewController1.nib



## Partial temporary workaround

Change "Project properties -> Application -> Assembly name" from "Unified.ClassLibrary.iOS1" to "UnifiedClassLibraryiOS1" for the "Unified.ClassLibrary.iOS1" project. This stops the problem. (Note: this workaround depends on the current BAD behavior of bug 27665 so it could easily stop working if bug 27665 is fixed before this bug.)



## For comparison, an example copy command from a GOOD version (3.9.483)

> Copying file from
> '/Volumes/Cases/macuser/Library/Caches/Xamarin/mtbs/builds/
> UnifiedSingleViewIphone1/759b026e59a594d202d7155a1c9bb8c9/
> obj/iPhoneSimulator/Debug/IPhoneViewController1.nib'
>
> to
>
> '/Volumes/Cases/macuser/Library/Caches/Xamarin/mtbs/builds/
> UnifiedSingleViewIphone1/759b026e59a594d202d7155a1c9bb8c9/
> bin/iPhoneSimulator/Debug/UnifiedSingleViewIphone1.app/IPhoneViewController1.nib'

Note the _absence_ of "." period characters in the project name part of source folder.



## Version information

### Windows 8.1 64-bit, in VMWare Fusion 6.0.5 (2209127)
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Xamarin   3.9.530.0 (77c6c15)
Xamarin.Android   4.20.0.38 (38ac51a9d0866c7726a7484d82632c82c8221594)
Xamarin.iOS   8.8.1.0 (61fa2c6e0f2ef51eb98b8810de13b4469f379cc7)


### OS X 10.9.5, MacBook Air
Xamarin.iOS 8.8.2.2 (Business Edition)
Hash: f5d0c5e
Build date: 2015-03-20 06:51:49-0400

Xcode 6.1.1 (6611), Build 6A2008a
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2015-03-21 23:34:27 UTC
Created attachment 10445 [details]
Log files
Comment 4 Mohit Kheterpal 2015-03-26 08:12:49 UTC
I have checked issue 28299 with XVS 3.9.525 and its working fine now i.e. we are able to build and deploy attached sample. as shown in screencast : http://www.screencast.com/t/jzqbslyK2WJA

Hence closing this issue.