Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - Delete application before running on device

Tags:

xcode

ios

iphone

Is there a way in Xcode (4.6) to delete the application on the device before installing it ?

I need it for testing purposes and it will be easier if the application will be deleted from the device before being installed again.

like image 571
giorashc Avatar asked Mar 06 '13 21:03

giorashc


People also ask

Can I delete an app from just one device?

Delete apps on AndroidHead to the Google Play Store app on your phone and tap the profile icon. Go to "Manage Apps & Devices," then select manage. Tap on the app you want to remove and hit uninstall. Similar to Apple, you can also tap and hold on an app to find the option to delete.

How do I delete an app in Xcode?

Sign into your account for your self-managed GitLab instance and go to your account settings. Choose Applications and then delete the app for Xcode Cloud.

Can you delete pre installed iPhone apps?

Delete built-in Apple apps from the Home Screen on your iOS 14 or later or iPadOS device or Apple Watch. With iOS 14 and later and iPadOS, you can delete some built-in Apple apps from your iPhone, iPad, or Apple Watch.


2 Answers

Yes you can.

Get https://github.com/libimobiledevice/ideviceinstaller

Which brings you the ability to use ideviceinstaller --uninstall <app-id> in the bash environment.

Then do a script in your build configuration in xcode, such as: http://www.runscriptbuildphase.com/

like image 194
Lalle Avatar answered Sep 17 '22 18:09

Lalle


The only way is to delete it manually. There's no way to have xcode delete the app from a device before running each time if that's what you were asking. Sorry, it would be a great feature, but for now, there's no way to do that. Not even on the simulator.

I think you should file a bug/feature request with apple though! That functionality would come in handy for me!

like image 35
HackyStack Avatar answered Sep 17 '22 18:09

HackyStack