ditto -ck --sequesterRsrc --keepParent `ls -1 -d -t ~/Library/Developer/Xcode/DerivedData/*/Build/Products/*-iphonesimulator/*.app | head -n 1` /path/ofyourchoice/MyApp.zip
ios-sim launch /path/to/your-app.app
# Remove all Underscore prefix files DS_Store | |
- Type this command in Terminal | |
sudo find / -name "._*" -exec rm -rf {} \; |
A Pen by Alexandre Magnier on CodePen.