security unlock-keychain -p~/Library/Keychains/login.keychain
Tag Archives: keychain
Change Keychain Password
security set-keychain-password -o-p ~/Library/Keychains/login.keychain
Resign ios app
-
CD to the dir which contains your ipa file.
cd ~/Downloads/my_app
-
Unzip the app
unzip my_app.ipa
-
Delete the Mobile Provision in the app.
rm Payload/my_app.app/embedded.mobileprovision
-
Copy your new provisioning profile into the app.
cp ~/Downloads/ProvisionAdHoc.mobileprovision Payload/my_app.app/embedded.mobileprovision
-
Export required system vars
export EMBEDDED_PROFILE_NAME=embedded.mobileprovision export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
-
Resign your code
codesign -f -vv -s "iPhone Distribution: Joe Smith" Payload/my_app.app
-
Recreate your ipa file.
zip -r Payload Payload mv Payload.zip my_app.ipa