App Signature and pkg signature for MAC App Store (must be signed before it can be sold)

Source: Internet
Author: User

App Signature

Only apps signed with an Apple-issued certificate can be sold on the App Store, so the app we've developed must be signed.

There are two ways to sign a signature, one is to use Xcode, to set up a signature in the configuration, a signature for the compiled app, and a manual signature using the Codesign command line. Here we use manual codesign to sign the app.

codesign-s "Your application Certificates"App_path

For example, you need to sign Myappdemo.app and use the certificate you requested earlier.

Codesign-s "3rd party Mac developerapplication:xxxx" Myappdemo.app

Signed apps have two more files than unsigned apps _codesignature and coderesources

Pkg Signature

A signed app can use the Productbuild command line to play pkg package. Here you will need to use the installer certificate you created earlier.

Productbuild--component app_path/applications--sign "3rd party Mac Developer installer:xxx"--product info.plist_ Pathdest_pkg_path.pkg

For example, you want to play pkg bag on the myappdemo.app that you just signed?

Productbuild--component myappdemo.app/applications--sign "3rd party Mac Developer installer:xxx"--product MyAppDemo.a Pp/contens/info.plistmyappdemo.app.pkg

http://blog.csdn.net/cocoasprite/article/details/9624815

App Signature and pkg signature for MAC App Store (must be signed before it can be sold)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.