Permissions issue when deploying iOS

Not sure where to post this, but I thought after chmodding, there should be no issues…

/Users/travis/build.sh: line 41: ./scripts/sign-and-upload.sh: Permission denied

I thought the file “sign-and-upload.sh” isn’t been permission. So I give these files appropriate permissions:

before_install:
- chmod +x scripts/add-key.sh
- chmod +x scripts/remove-key.sh

But it still failed.

This is the add-key.sh:

#!/bin/sh
security create-keychain -p travis ios-build.keychain
security default-keychain -s ios-build.keychain
security unlock-keychain -p travis ios-build.keychain
security set-keychain-settings -t 3600 -l ~/Library/Keychains/ios-build.keychain

Any ideas?

You are right that sign-and-upload.sh needs execute permission, which should be obvious. The issue is, your response was to change some different files – You need to add:

- chmod +x scripts/sign-and-upload.sh