简体   繁体   中英

Remove iOS app from command line

So we're building this iOS application. We have performance tests that are automatically run by Jenkins. Of course these tests must be run on the device.

Right now we have a lot of trouble with some tests, and I suspect that they don't clean up after themselves, leaving the app's Documents folder in an uncertain state. Obviously I can fix the cleanup, but this will take a huge time.

I'd love to be able to just delete the app from the device before running the tests . Is there any way we can do this via xcodebuild or any other automatable tool. Could be even applescript or a non-official tool. The only rule is that we may not jailbreak the device.

One multi-platform option is libimobiledevice and the ideviceinstaller utility. It runs on Linux, Mac and Windows and even supports iOS 9. As noted in the library webpage, it does not depend on jailbreak.

To delete an app do:

ideviceinstaller -uninstall com.somecompany.someapp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM