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 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.
Created attachment 11953 [details]
Customer is searching for a solution to a problem with ad-hoc/app store builds
of their Xamarin iOS app.
When we build the app on our build server, the app is missing its icon
files, but when we build the same solution in other locations, the icons
are included in the app bundle. The icon files are in an Asset Catalog.
The attached sample project builds successfully reproduce the
problem. It only occurs when the solution directory is located in a
subdirectory of /private/var on the Mac filesystem. If we build exactly the same
source code in another location, such as within a user's home directory,
the problem does not occur.
They encountered this problem with Xamarin.iOS 184.108.40.2067/Xamarin Studio
5.9.1 build 3 (and possibly with some earlier versions too). They're still have
the problem after updating to the latest stable releases of Xamarin.iOS and
Xamarin Studio (220.127.116.11 and 5.9.4 build 5). Xcode is at version 6.3.2.
TestIcon.zip: the sample Xamarin Studio solution I have used to reproduce
the problem. If you unzip this into, for example, your home directory, open
the solution in Xamarin Studio, and build and run, you will see that the
app is installed on the iOS simulator and the app icon is visible on the
home screen. If you copy this code to a subdirectory of /private/var
instead, and build and run, the app icon will not be visible on the
simulator home screen.
Build Results.zip: this zip file contains two subdirectories. "Build
Results home directory" contains the build log when building the project
from my home directory, and "Build Results private-var" contains the build
log when building from /private/var. You will note that the private/var
build log has some output with some odd looking relative paths (lots of
"../../") that the other build log does not have. Also, I included screen
shots from the iOS simulator showing the missing app icon, and a listing of
the contents of the .app file that shows the app icon PNG is not included
in the app built from private/var.
Created attachment 11954 [details]
This doesn't look quite right:
> SmartCopy Task
@Jeff, can you have a look?
Here's the problem: http://screencast.com/t/HFlXfBhZAps
The problem is that /private/var is a symlink to /var and so file-path matching doesn't work and thus calculating the relative path of the icon (/var/TestIcon/whatever) to the project path (/private/var/TestIcon) obviously results in a ../../../..... relative path.
This is already worked around in git master.
In the meantime, build somewhere else that isn't a symlinked path and the problem will go away.
Yeah, I was pretty sure the symlink was causing the problem. We are building out of a different directory anyway for production builds, so for now we can live with the bug affecting only our dev builds.
FWIW, Xamarin.iOS 8.12 will have a fix for this.