I have a *.pkg file which is built by using productbuild command. (productbuild --component <path>/HyperBIM-v0.36.app /Applications/ ./HyperBIM-v0.36.pkg)
This HyperBIM-v0.6.app is signed by using codesign command. (codesign --deep -s "Apple Development: Amritpal Singh (KC65BTVN4Z)" ./HyperBIM-v0.36.app)
Now, to sign generated HyperBIM-v0.36.pkg file I run below command:
Here is identities present login.keychain-db:
But I can sign my HyperBIM-v0.36.pkg using codesign command (codesign --deep -s "Apple Development: Amritpal Singh (KC65BTVN4Z)" ./HyperBIM-v0.36.pkg)
Is there any difference between sign *.pkg using codesign and productsign tool? I have to publish my *pkg to App Store.
Why productsign tool unable to find signing identity as identity is present in login.keychain-db?
Thanks
This HyperBIM-v0.6.app is signed by using codesign command. (codesign --deep -s "Apple Development: Amritpal Singh (KC65BTVN4Z)" ./HyperBIM-v0.36.app)
Now, to sign generated HyperBIM-v0.36.pkg file I run below command:
Code Block $ productsign --sign "Apple Development: Amritpal Singh (KC65BTVN4Z)" --keychain /Users/ambu/Library/Keychains/login.keychain-db ./HyperBIM-v0.36.pkg ./HyperBIM-v0.36-Signed.pkg productsign: error: Could not find appropriate signing identity for “Apple Development: Amritpal Singh (KC65BTVN4Z)” in keychain at “/Users/ambu/Library/Keychains/login.keychain-db”. An installer signing identity (not an application signing identity) is required for signing flat-style products.
Here is identities present login.keychain-db:
Code Block $ security find-identity /Users/ambu/Library/Keychains/login.keychain-db Policy: X.509 Basic Matching identities 1) AFF80D6344B85AC51D5A44443B9AA5FF7B09A824 "Apple Development: Amritpal Singh (KC65BTVN4Z)" 1 identities found Valid identities only 1) AFF80D6344B85AC51D5A44443B9AA5FF7B09A824 "Apple Development: Amritpal Singh (KC65BTVN4Z)" 1 valid identities found
But I can sign my HyperBIM-v0.36.pkg using codesign command (codesign --deep -s "Apple Development: Amritpal Singh (KC65BTVN4Z)" ./HyperBIM-v0.36.pkg)
Is there any difference between sign *.pkg using codesign and productsign tool? I have to publish my *pkg to App Store.
Why productsign tool unable to find signing identity as identity is present in login.keychain-db?
Thanks