Created
October 7, 2014 21:15
-
-
Save stevenschobert/c435f6a995af20ea64a3 to your computer and use it in GitHub Desktop.
Optional Crashlytics script for Xcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| testCrashlyticsPresent='try\n set crashlytics to application "Crashlytics"\n properties of crashlytics\non error errorMessage\n if errorMessage contains "application" then\n error\n else\n return true\n end if\nend try\n' | |
| if $(echo $testCrashlyticsPresent | /usr/bin/osascript 2>/dev/null); then | |
| ./Crashlytics.framework/run CRASHLYTICS_KEY | |
| else | |
| echo "Crashlytics isn't installed. Skipping." | |
| exit 0 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment