Command-line utils for iOS simulators. Use in automated tests to list or delete media assets and/or pasteboard items from a simulator.
- Clone the repository
git clone https://github.com/NickAb/ios-utils.git cd ios-utils - Build
xcodebuild build -sdk iphonesimulator -scheme ios-utils -derivedDataPath ./build
 - Launch on a booted simulator
xcrun simctl spawn booted build/Build/Products/Debug-iphonesimulator/ios-utils.app/ios-utils help 
Usage: xcrun simctl spawn booted <subcommand> ...
Subcommands:
    media <subcommand>         
        list                   List media assets
        delete                 Delete all media assets
    pasteboard <subcommand>    
        list                   List string and url pasteboard items
        delete                 Clear pasteboard
    help                       Print usage