Skip to content
Khoa Pham@onmyway133

Useful commands for iOS development

1 min read
$ 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
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
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

Type to search titles and full text.

↑ ↓ move↵ openPagefind