Search code examples
xcodecontinuous-integrationcrashlyticstwitter-fabricxcode-bots

Xcode 6 Continuous Integration Bot - Crashlytics failing on build / upload script


Trying to incorporate Continuous Integration into my Xcode builds. I have setup OS X Server on my MacBook and everything seems to work fine except for the actual submit/upload script for Crashlytics.

I am getting this error in the 'Trigger' log:

/var/folders/1d/5y5tn0hd1qj01wbxgd3sxrs4000086/T/EFFB7FF5-CFF5-41CF-8AEB-D8813069D831-16127-000004A29A1D79A7: line 2: /Crashlytics.framework/submit: No such file or directory

Couple things to note:

  • I am able to manually archive/distribute my builds through Crashlytics without any problems.
  • Crashlytics is installed via PODS and my Run Script looks like this (with my real keys obviously):

    ${PODS_ROOT}/Crashlytics.framework/submit MYAPIKEY MYCLIENTKEY -emails [email protected] -notesPath ~/Notes/ReleaseNotes.txt -groupAliases myGroupAlias -notifications YES


Solution

  • ${PODS_ROOT} is not available to the post trigger action.

    You should use

    ${XCS_SOURCE_DIR}/*RepoName*/Pods/Crashlytics/Crashlytics.framework/submit etc

    Where *RepoName* is the name of your repo. Sadly, I haven't been able to find a env variable for it or something.