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 4674 [details]
Full error message
Reported on behalf of a user.
## Steps to reproduce
If you don't have an "iPhone Distribution" certificate with an ampersand in the name, you can use a self-signed certificate: "Keychain Access -> Certificate Assistant -> Create a Certificate". Name it something like "iPhone Distribution: One & Two".
1. Create a new iPhone project in Xamarin Studio.
2. In Project Options -> Build -> iOS Bundle Signing, set "Identity" to a certificate that includes an ampersand in the name (e.g., "Distribution: One & Two").
3. Select "OK".
System.Xml.XmlException: a name did not start with a legal character 32 ( ) Line 1, position 27.
at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x0011f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.1/mcs/class/System.XML/System.Xml/XmlTextReader.cs:2714
## Expected Result
No error. Ampersands are valid in `codesign` identities:
codesign -s 'iPhone Distribution: One & Two' MyApp.app
## Version info
Version 4.1.9 (build 6)
Installation UUID: 56ba69da-7d25-4701-8c26-6a6e240910f5
Mono 3.2.1 ((no/f3f789e)
GTK+ 2.24.20 theme: Raleigh
Package version: 302010001
Version: 22.214.171.124 (Business Edition)
Build date: 2013-30-07 08:24:03-0400
Mac OS X 10.7.5
*** Bug 14322 has been marked as a duplicate of this bug. ***
Looks like the Project Model code isn't serializing the CodesignKey property to XML correctly
Jeff, have you verified if this happens on master? I think it could be already fixed.
*** This bug has been marked as a duplicate of bug 17 ***