Thursday, May 21, 2015

Xamarin.Forms: No valid iOS code signing keys found in keychain

Yesterday while creating a new Xamarin.Forms application,  it failed to build for iOS with the following error message:

No valid iOS code signing keys found in keychain

I first thought that there was something wrong with my iOS configuration, but when I tried to create a ‘traditional’ iOS application, it just worked.

On the Xamarin forums I found the following solution that worked for me:

  • Open your Xamarin.Forms projects.
  • Unload the iOS project in Visual Studio.
  • Open the csproj file and search for the following element

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
    <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
</PropertyGroup>

  • Remove ‘Entitlements.plist’ from the ‘CodesignEntitlements’
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<CodesignEntitlements></CodesignEntitlements>
</PropertyGroup>

14 comments:

Dmitriy Shatalov said...

Bart, thanks a lot!

Anonymous said...

That's the clearest working solution. Thanks a lot.

Caio said...

It works like a charm, great!

Anonymous said...

Worked, thanks!

ElaboratedMind said...

not work, error persist

Banu said...

This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
Mobile App Development Company in Chennai
Android app Development Company in Chennai
ios app development Company in Chennai

sunitha vishnu said...

It's interesting that many of the bloggers your tips helped to clarify a few things for me as well as giving.. very specific nice content. And tell people specific ways to live their lives.Sometimes you just have to yell at people and give them a good shake to get your point across.
Mobile App Development Company
Android app Development Company
ios app development Company
Mobile App Development Companies

Ananthi A said...

Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..
Mobile App Development Company
Android app Development Company
ios app development Company
Mobile App Development Companies

john stany said...


Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
Android App Development Company

Sharon Sandy said...

great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
web design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India

john stany said...

These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
iOS App Development Company
iOS App Development Company

isabella jacob said...

it is really amazing...thanks for sharing....provide more useful information...
Mobile app development company

louis philip said...

You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
Fitness SMS
Fitness Text
Salon SMS
Salon Text
Investor Relation SMS
Investor Relation Text

Sharon Sandy said...

great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
web design Company
web development Company
web design Company in chennai
web development Company in chennai
web design Company in India
web development Company in India