Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 804
Illep Avatar asked Mar 28 '12 01:03

Illep


People also ask

What is the purpose of code signing in Xcode?

Code signing your app assures users that it's from a known source and hasn't been modified since it was last signed. Before your app can integrate app services, be installed on a device, or be submitted to the App Store, it must be signed with a certificate issued by Apple.

Do iOS apps need to be signed?

To help ensure that all apps come from a known and approved source and haven't been tampered with, iOS and iPadOS require that all executable code be signed using an Apple-issued certificate. Apps provided with the device, like Mail and Safari, are signed by Apple.


4 Answers

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.

like image 138
Abizern Avatar answered Sep 29 '22 03:09

Abizern


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!

like image 28
starea Avatar answered Sep 29 '22 03:09

starea


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."

like image 21
Jack Bellis Avatar answered Sep 29 '22 04:09

Jack Bellis


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.

like image 41
Madbreaks Avatar answered Sep 29 '22 04:09

Madbreaks



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!