#!/bin/sh security delete-keychain init security create-keychain -p password init security unlock-keychain -p password security import cert/ios_dist.p12 -k init -A -P password security default-keychain -s init #/usr/bin/codesign --force --sign 19BB46E9EC0814FE16FC8E338F2CA4032BD802DC --entitlements /Users/host/app/platforms/ios/build/App.build/Release-iphoneos/App.build/App.app.xcent /Users/host/app/platforms/ios/build/device/App.app echo "CODE_SIGN_IDENTITY = iPhone Distribution: MY COMPANY s.r.o. (474J2889UU)" > platforms/ios/cordova/build-release.xcconfig cordova build --release --device ios /usr/bin/xcrun -v -v -sdk iphoneos PackageApplication $(pwd)/platforms/ios/build/device/App.app -o $(pwd)/App.ipa security default-keychain -s login.keychain security delete-keychain init security dump-keychain security delete-certificate -c "iPhone Developer: xxxxxx"
Dobre info tady: http://stackoverflow.com/questions/7678057/remove-private-key-from-mac-os-x-keychain-using-terminal