Should Certificates and Fastlane Files Be Committed to Git in an Xcode Project?

I have created a provisioning profile to deploy an iOS app to the test flight using fastlane.

Following is the list of files that I have added to .gitignore

  • fastlane/report.xml
  • fastlane/Preview.html
  • fastlane/screenshots
  • fastlane/test_output
  • fastlane/README.md

Should I also be adding the following files to .gitignore?

  • Files in the folder /certificates
  • fastlane/Appfile
  • fastlane/Fastfile

1 Answer

I don't use the testflight action, but I do use fastlane, so I know that you absolutely do want to add:

  • fastlane/Fastfile
  • fastlane/Appfile

The Fastfile contains the logic for your lane itself.

I also imagine that you'll want to add your certificates to your repo if you want to run your fastlane from other machines.

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest