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 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.
Created attachment 10159 [details]
[XVS.iOS 3.9] XIB files and BundleResources within iOS Class Libraries where assembly name does not match project name cause "Cannot copy ... as the source file doesn't exist"
Regression status: regression between XVS 3.8.150 (10cfd17) + XI 126.96.36.199 (840a925) and XVS 3.9.344 + XI 188.8.131.52
This is a follow-up to bug 26606 for the case where the _assembly name_ of the class library does not match the _project name_ of the class library.
## Steps to reproduce
1. Open the attached test case in Visual Studio. (This is essentially the same test case as for bug 26606, but the assembly name for the "ClassicClassLibrary1" project has been changed.)
2. Ensure Visual Studio is paired with the build host.
3. Build the "ClassicSingleViewUniversal1" app in the "Release|iPhone"
(Note: due to bug 26484 it is mandatory to build the solution from within
Visual Studio rather than on the command line.)
The build process looks for the compiled `.nib` file from the "ClassicClassLibrary1" project in the incorrect location on the build host. The folder location used by the Copy command is "ClassicClassLibrary1Foo" (the assembly name), but the actual folder on the build host is "ClassicClassLibrary1" (the project name).
### Errors from the "Error List" window
For the XIB file:
> Cannot copy /Volumes/Cases/macuser/Library/Caches/Xamarin/mtbs/builds/
> as the source file doesn't exist.
For BundleResource `.png` file:
> Cannot copy
> as the source file doesn't exist.
### The build host _does_ have a copy of the the `.nib` file and the `.png` file, but the folder name does not include "Foo"
> $ find ~/Library/Caches/Xamarin/mtbs/builds/ClassicClassLibrary1/ac2b1df117a4a45438eed4d5a8f39bf0 -name "*.nib" -or -name "*.png"
## Partial workaround
Change "Project properties -> Application -> Assembly name" from "ClassicClassLibrary1Foo" to "ClassicClassLibrary1" for the "ClassicClassLibrary1" project. This stops the problem.
## Results on Xamarin Studio: success
The project builds and deploys successfully on Xamarin Studio 5.7.2 (build 7) on Mac.
## Version info
### 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
Xamarin 3.9.344.0 (e23ab72)
Xamarin.Android 184.108.40.206 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Xamarin.iOS 220.127.116.11 (862702c6b8aa14a373e25f83ac45918556af41a2)
### OS X 10.9.5, MacBook Air
Xamarin.iOS 18.104.22.168 (Business Edition)
Build date: 2015-02-26 11:05:07-0500
Xcode 6.1.1 (6611), Build 6A2008a
Created attachment 10160 [details]
This attachment includes the diagnostic build output, the logs from ~/Library/Logs/Xamarin/MonoTouchVS on the Mac build host, and the logs from %LOCALAPPDATA%\Xamarin\Log on Windows.