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?
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With