Problem: I developed an application via Xcode and published it in the App Store. I then continued developing it and removed the application I had installed from the AppStore.

When I try to re-install it from the AppStore I got the following message:

“If you want to replace it with this version, move the existing app to the trash”

I deleted all the data for this application from

  • ~/Library/Containers
  • ~/Library/Application Support
  • ~/Library/Preferences
  • the application itself of course

But still. It was not possible to re-install it. Finally I stumbled across lsregister – a tool for the Launch Service Database and this command helped me:

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain user

After that, the install worked.

Image Credit: dirty rotten apple 2 by Lara604 (CC BY 2.0)