简体   繁体   中英

Xcode provisioning profile

Is there any way to test in code about which certificate is using? (Development provisioning profile or distribution profile?)

Open terminal and go to the folder where you have stored the .app file. Then write below command.

$ codesign -d -vv YOUR_APP_NAME.app/YOUR_APP_NAME

It will print information like below.

Executable=/Users/craig/Projects/FrenzicTouch/build/Distribution-iphoneos/Frenzic.app/Frenzic
Identifier=com.iconfactory.Frenzic
Format=bundle with Mach-O thin (armv6)
...
Signature size=4331
*Authority=iPhone Distribution: The Iconfactory*
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Nov 12, 2008 1:46:07 PM
...

Check Authority. If it has iPhone Distribution, its signed with distribution profile else developer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM