Now, we can look at the steps needed to sign our App using our Developer ID:
If you have not joined the Mac App developer program, do so now.
Launch Xcode and create a new project using the Mac OS X Cocoa Application template.
Name the new App
DeveloperIDTest
.From the Product menu, select Build For, and then select Archiving.
From the Product menu, select Archive.
In the Organizer – Archives window, click on the Distribute…button as shown in the following screenshot:
For the Method of Distribution, select Export Developer ID-signed Application and click on the Next button as shown in the following screenshot:
Select the Developer ID with which you wish to sign in the App and click on the Next button.
When prompted to enter your keychain password for codesign, enter your Password and click on the OK button as shown in the following screenshot:
Optionally, rename your App and click on the Save button.