Code signing is required for product type 'Application' in SDK 'iOS5.1'

Code Signingxcode4.3IpaIos5

Code Signing Problem Overview


I am using xCode 4.3.1. After i created a project, i build it and tried to Archive. Then i got an error saying; (This is my first project in xCode 4.3.1)

> CodeSign error: code signing is required for product type > 'Application' in SDK 'iOS5.1'

What does this mean ? and how to solve it ?

Code Signing Solutions


Solution 1 - Code Signing

It means you haven't assigned a provisioning profile to the configuration.

Usually it's because "Any iOS SDK" must have a profile and cannot be set to "Don't sign".

All this and more is answered in the TN2250 Tech Note about Code Signing and Troubleshooting.

Solution 2 - Code Signing

One possible solution which works for me:

  1. Search "code sign" in Build settings
  2. Change everything in code signing identity to "iOS developer", which are "Don't code sign" originally.

Bravo!

Solution 3 - Code Signing

This error was caused, for me, by different circumstances. A downloaded project tutorial had a default setting of [Project]>Targets>Build Settings>Architectures>Build Active Architecture Only>Release = "Yes." I wasn't intending to build a release, so the solution was to set Release (which presumably requires not just a developer profile but distribution profile) to "No."

Solution 4 - Code Signing

You can get around this by using the simulator if you don't actually need to be deploying to a device. That solved it for me.

Solution 5 - Code Signing

I had this problem even though I had a valid provisioning profile for the device. It turned out that I had changed my developer account password and needed to update the password in xcode. This is done by going to preferences-Accounts-Apple ID and entering the new password.

Solution 6 - Code Signing

Restarting Xcode did the trick for me. :)

Solution 7 - Code Signing

The other issue here lies under Code Signing Identity under the Build Settings. Be sure that it contains the Code Signing Identity: "iOS Developer" as opposed to "Don't Code Sign." This will allow you to deploy it to your iOS device. Especially, if you have downloaded a GitHub example or something to this effect.

Solution 8 - Code Signing

I had same problem with an Apple Sample Code. In project "PhotoPicker", in Architectures, the base SDK was:

screen shot 1

This parametrization provokes the message:

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'

It assumes you have a developer user, so... use it and change:

screen shot 2

And the error disappears.

Solution 9 - Code Signing

TN2250 Tech document was retired,To resolve this add IOs5.1 or 8.1 sdk field under Anyios SDK field

in code sign problem will solved

Solution 10 - Code Signing

I have same problem because option In-App Purchase was ON in project's Capabilities. If your app is not need in-app purchases - turn it off, or you need to set a correct provision profile to Debug scheme.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIllepView Question on Stackoverflow
Solution 1 - Code SigningAbizernView Answer on Stackoverflow
Solution 2 - Code SigningstareaView Answer on Stackoverflow
Solution 3 - Code SigningJack BellisView Answer on Stackoverflow
Solution 4 - Code SigningMadbreaksView Answer on Stackoverflow
Solution 5 - Code SigningJim TView Answer on Stackoverflow
Solution 6 - Code SigningYash SoniView Answer on Stackoverflow
Solution 7 - Code SigningFletch F FletchView Answer on Stackoverflow
Solution 8 - Code SigningMarkusView Answer on Stackoverflow
Solution 9 - Code SigningSubathra DView Answer on Stackoverflow
Solution 10 - Code SigningSound BlasterView Answer on Stackoverflow