The following is a list of useful commands for various aspects of iOS development.
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Developer/Xcode/Archives
find . -exec touch '{}' \;
uuidgen
uuidgen | tr ][:upper:]' '[:lower:]'
pod deintegrate
pod cache clean <POD_NAME>
pod cache clean --all
pod lib lint
pod lib lint --sources=trunk,<REPO_NAME>
pod repo update
xcrun simctl list
xcrun simctl erase all
xcrun simctl delete unavailable
xcrun simctl uninstall booted <BUNDLE_IDENTIFIER>
xcrun simctl io booted recordVideo --codec=h264 --mask=black --force output.mov
git checkout branchToSquash
git reset $(git merge-base main $(git branch --show-current))
git add -A
git commit -m "squashed branch"
git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
- 750 x 1334 iPhone
- 886 x 1920 iPhone Pro Max
- 900 x 1200 iPad 9.7
- 1080 x 1920 iPhone Plus
- 1200 x 1600 iPad Pro 12.9
ffmpeg -i input.mp4 -s <WIDTH>x<HEIGHT> -c:a copy ouput.mp4
ffmpeg -i input.mp4 -strict -2 -vf scale=<WIDTH>x<HEIGHT> -aspect 1.779 output.mp4
ffmpeg -i input.mp4 -vf "transpose=1" output.mp4