Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codesign .app file in Command Line

I am trying to submit the Mac app outside the app store. I take the build from Xcode 4.5 and use the following code for code-signing. But neither of them are working.

codesign --force -s  "3rd Party Mac Developer Application: My Company" -v <path to my .app file>

//signed bundle with Mach-O thin (x86_64) [com.CompanyNama.AppName]

It gives rejected when verifying.

codesign --force --sign "Developer ID Application: My Company"  <path to my .app file>

It gives rejected, source=No Matching Rule/source=Developer ID when verifying. I use the following command for verifying,

sudo spctl -a -v 

What I am doing wrong? Which one we should use when code-signing .app file?

like image 378
Ramaraj T Avatar asked Aug 26 '13 09:08

Ramaraj T


1 Answers

You need to replace "Developer ID Application: My Company" with an actual certificate name. Find the production certificate you want to use in Apple's developer portal. Make sure that it's also in your OS X keychain including the private key. Copy the name and replace "Developer ID Application: My Company"

like image 76
Blago Avatar answered Oct 30 '22 07:10

Blago