Useful commands for iOS development
- Dynamic library size https://github.com/artsy/eigen/issues/1246
$ cd DerivedData/Artsy/Build/Products/Debug-iphoneos/Artsy.app/Frameworks
$ find . -perm +u=x -type f ! -iname '*.strings' ! -iname '*.ttf' ! -iname '*.otf' -print0 | xargs -0 ls -lh | awk '{print $5, $9}' | column -t | gsort -h -r -k1
- Cocoapods exposed http://nshipster.com/new-years-2015/
class-dump -C Pods_ /Applications/Squire.app | grep -o "Pods_\w+"
git diff --cached -z $against | grep $marker | wc -c
- Top file size
unzip -lv Roger\ Release.ipa | sort -k +3nr | head
- Xcode reload bundle
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-7.3
- Open Terminal http://stackoverflow.com/questions/7171725/open-new-terminal-tab-from-command-line-mac-os-x
osascript -e 'tell application "Terminal" to activate' -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down'
open -a Terminal ~/Applications/
open -a iTerm ~/Applications/
Record
xcrun simctl io booted recordVideo demoVideo.mp4
Switch Xcode
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer