-
Remove unnecessary dock items.
-
Allow remote login (ssh) and screen sharing on system preferences.
-
Open iTunes and accept user agreement.
-
If update is available, install last version.
- Open App Store and install last version.
-
Xcode installer needs environment variables with your credentials to access the Apple Developer Center. Set these variables in the
.bashrc
file:XCODE_INSTALL_USER XCODE_INSTALL_PASSWORD
-
Load new environment variables
source ~/.bashrc
-
Install Xcode command line installer (xcversion)
curl -sL -O https://github.com/neonichu/ruby-domain_name/releases/download/v0.5.99999999/domain_name-0.5.99999999.gem sudo gem install domain_name-0.5.99999999.gem sudo gem install --conservative xcode-install rm -f domain_name-0.5.99999999.gem xcversion install 7.3.1
-
Install Command Line Tools
xcversion install-cli-tools
-
Accept Xcode Licence
sudo xcodebuild -license accept
-
Setting up instruments without delay (iwd) for xcode 7 and iOS >= 9.0
For iOS >= 9.0 instruments without delay (iwd) does not work by passing binaries through the command line (appium does this under the hood for xcode < 7). See iwd
For enabling iwd for xcode >= 7,
- Checkout appium-instruments
- Run
xcode-iwd.sh
present in<appium-instruments>/bin/
sh <appium-instruments>/bin/xcode-iwd.sh <path to xcode> <path to appium-instruments>
eg.
sh ./bin/xcode-iwd.sh /Applications/Xcode.app /Users/xyz/appium-instruments/
Note: iwd with xcode7 will only work for iOS >= 9.0, you can switch to older xcode for iOS < 9.0
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install node
brew install java
npm install -g appium
sudo /usr/sbin/DevToolsSecurity --enable
brew install ideviceinstaller
sudo chmod -R 777 /var/db/lockdown/
brew install ios-webkit-debug-proxy
git clone https://github.com/mehmetboraezer/autologin && cd autologin/source
sudo chmod +x autologin.sh keygen.py
sudo ./autologin.sh <USERNAME> <PASSWORD>
sudo defaults delete /Library/Preferences/com.apple.screensaver loginWindowIdleTime
sudo defaults delete /Library/Preferences/com.apple.screensaver loginWindowModulePath
osascript -e 'tell application "System Events" to set require password to wake of security preferences to false'
echo '@reboot /usr/sbin/scutil --set ComputerName $RANDOM' > cron
sudo crontab cron && rm cron
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
killall -9 NotificationCenter
brew install python3
brew linkapps python3
pip3 install virtualenv
sudo defaults write -g ApplePersistence -bool no
sudo shutdown -r now "Rebooting now"