This file contains 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
#!/bin/bash | |
echo "--- Bitrise Box Info:" | |
cat ~/Desktop/box-info.json | |
echo "---------------------" |
This file contains 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
#!/bin/bash | |
# | |
# To export an environment for other steps in your workflow you have to add the environment variable to | |
# a persistent environment store. Every step runs in it's own shell session and so if | |
# a previous step just exports an environment it won't be available for other steps, | |
# unless you add it to a persistent store (like .bash_profile) | |
# | |
# |
This file contains 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
#!/bin/bash | |
# | |
# Add this script as a Bash Script Runner step or use this gist directly on Bitrise | |
# to install mogenerator (https://github.com/rentzsch/mogenerator) | |
# with the pre-installed homebrew (http://brew.sh/) | |
# | |
brew update | |
brew install mogenerator |
This file contains 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
#!/bin/bash | |
# | |
# Notes: | |
# * You can get your source code's path on Bitrise with the ${BITRISE_SOURCE_DIR} environment variable | |
# * The IPA path (if you use the Xcode Archive Step) is stored in the ${BITRISE_IPA_PATH} environment | |
# | |
/path/to/Crashlytics.framework/submit <API_KEY> <BUILD_SECRET> -ipaPath "${BITRISE_IPA_PATH}" -emails TestEmail@crashlytics.com,AmazingTester@twitter.com -notesPath ~/Notes/ReleaseNotes.txt -groupAliases GroupAlias,GroupAlias2 |
This file contains 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
# Mac OS X | |
*.DS_Store | |
# Xcode | |
xcuserdata/ |
This file contains 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
# add these to ~/.bash_profile or another profile which is loaded | |
# from ~/.bash_profile (on OS X) | |
# source: http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/ | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# better default 'ls' | |
alias ls='ls -GFh' |
This file contains 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
#!/bin/bash | |
# This will add lauchd to the list of allowed processes for accessibility access | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/sbin/osascript',1,1,1,NULL)" | |
# This outputs the rows in the TCC database | |
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access' | |
echo "Restart is required for these changes to take effect" |
This file contains 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
#!/bin/bash | |
exit 1 |
This file contains 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
#!/bin/bash | |
# | |
# Unlock the keychain, using the Bitrise.io Keychain password environment | |
# | |
keychain_path="$HOME/Library/Keychains/login.keychain" | |
keychain_password="$BITRISE_KEYCHAIN_PASSWORD" | |
set -e |
This file contains 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
#!/bin/bash | |
set -x | |
set -e | |
# use either the -project option, or the -workspace option but not both ;) | |
xcodebuild -project "YOUR.xcodeproj" OR -workspace "YOUR.xcworkspace" -scheme "a Shared scheme" clean archive | grep -i -e 'Signing Identity' -e 'Provisioning Profile' -e ' (' |