Deploy an app automatically to testflight using travis ci.
- Copy the .travis.yml into your repo (replace app name, developer name and provisionin profile uuid)
- Create the folder "scripts/travis"
- Export the following things from the Keychain app
- "Apple Worldwide Developer Relations Certification Authority" into scripts/travis/apple.cer
- Your iPhone Distribution certificate into scripts/travis/dist.cer
- Your iPhone Distribution private key into scripts/travis/dist.p12 (choose a password)
- Execute
travis encrypt "KEY_PASSWORD=YOUR_KEY_PASSWORD" --add
- Execute
travis encrypt "TEAM_TOKEN=TESTFLIGHT_TEAM_TOKEN" --add
- Execute
travis encrypt "API_TOKEN=TESTFLIGHT_API_TOKEN" --add
- Copy add-key.sh, remove-key.sh and testflight.sh into scripts/travis
- Commit
I was also having this issue:
In my case, my .gitignore file had a rule to ignore directories called "profile".
I added the following and committed the directory which fixed the issue:
!scripts/profile