Friday, November 6, 2026
HomeiOS Developmentios - Whereas utilizing Github Actions, I am dealing with "Permission denied...

ios – Whereas utilizing Github Actions, I am dealing with “Permission denied error”

[ad_1]

I am working with Github actions currently and dealing with hassle whereas importing .p12 certificates to construct.keychain and getting error as follows:

/Customers/runner/work/_temp/47c4b40a-b302-4da8-a26c-562eaae4c0ee.sh: line 1: ./provisioning/import_provisioning.sh: Permission denied
Error: Course of accomplished with exit code 1.

After struggling for a lot of hours I even tried to run this script manually on my terminal and every thing appears to be working effective! I rechecked whether or not my passwords are flawed or whether or not i am not in a position to entry it or not! However i believe i in a position to entry my github secret correctly, Any Thought why this may occasionally taking place!

Right here is my shell script file
import_provisioning.sh

gpg --quiet --batch --yes --decrypt --passphrase="$PROVISIONING_PASSWORD" --output provisioning/AppStoreCertificates.p12 provisioning/AppStoreCertificates.p12.gpg
gpg --quiet --batch --yes --decrypt --passphrase="$PROVISIONING_PASSWORD" --output provisioning/demo.mobileprovision provisioning/demo.mobileprovision.gpg

mkdir -p ~/Library/MobileDevice/Provisioning Profiles

echo "Checklist profiles"
ls ~/Library/MobileDevice/Provisioning Profiles/
echo "Transfer profiles"
cp provisioning/*.mobileprovision ~/Library/MobileDevice/Provisioning Profiles/
echo "Checklist profiles"
ls ~/Library/MobileDevice/Provisioning Profiles/

safety create-keychain -p "" construct.keychain
safety import provisioning/AppStoreCertificates.p12 -t agg -k ~/Library/Keychains/construct.keychain -P "$PROVISIONING_PASSWORD" -A

safety list-keychains -s ~/Library/Keychains/construct.keychain
safety default-keychain -s ~/Library/Keychains/construct.keychain
safety unlock-keychain -p "" ~/Library/Keychains/construct.keychain
safety set-key-partition-list -S apple-tool:,apple: -s -k "" ~/Library/Keychains/construct.keychain

And simply in case you are not getting it correctly you possibly can verify github repo for reference https://github.com/dheerajghub/GithubPipeline/blob/grasp/provisioning/import_provisioning.sh

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments