How to delete a mac app that keeps opening by itself - macos

Spotify keeps opening by itself on mac. How do you delete it, when macOS does not allow you to delete open apps, and the app reopens faster than you can trash it?

Possible solution: Find the app in finder and select Show Package Contents. Delete the content of this folder. Close the app, and it should be unable to open. You can now delete the app and try reinstalling it.

Use Activity monitor to force quit the app, then use app such as AppCleaner or simply drag and drop your Spotify app from your Applications folder into trash.

Related

Xcode gives "spotlight quit unexpectedly" error message

After updating to the newest version of Xcode 12, I started getting a "spotlight quit unexpectedly" error message. I uninstalled Xcode and the error message went away, but when I look in Launchpad the Xcode icon is still there and can't be deleted. Anyone have any idea how to fix this?
Clicking "x" on the jiggling icons in the Launchpad has not been a robust method to delete apps, in my experience. Some apps are root-owned (check by ls -la) so this method never even prompts for root password, let alone deleting the apps.
Best way is to use uninstaller or in-app buttons to uninstall it. This cleans up the contents in ~/Library or /Library and any Launchdaemons or Launchagents.
For Xcode, no such thing is there, so move Xcode app to Trash using Finder.
Also delete ~/Library/Developer if you'd like.
https://apple.stackexchange.com/questions/258733/how-to-show-hidden-files-on-mac-without-terminal/264473#264473

Mac application update from dmg

Currently I am developing a MacOSX app. it can be launch at startup. So it has launchitem installed.
However, when I need to update app, I drag app to ./Applications from dmg dialog window to replace current app with updated one.
Click the updated one, then reboot my Mac. Mac still show the previous app. It seems like I don't really replace or overwrite the old app.
Does anyone know how to clean the previous launch item and files when users drag new app from dmg to ./Applications ?
Thanks
The root cause is there is one deprecated app archive folder in user/developer/xcode/archive/, which is first triggered by launchitem. So the update app in applications is not called.

OSX Finder Extension does not delete with the application

I am using Finder Extension in my app, it works perfectly. But once user uninstall the app he is still able to see the overlays on Finder.
I google and find same issue exists for Dropbox as well, user has to manually unlink the Finder Extension.
Is there any better way to achieve this?

xcode install cocoa project at launchpad

When I run my Mac OS X Cocoa project, Xcode says build succeeded and the application opens, but never appears as installed. When I go to launchpad I can't find the application. Seems it is only emulated. I need to watch how is shown in the launchpad with the icon and the title. How can I install the application from the xcode?
I have xcode 6.1.
Need help please.
Thanks in advance.
Only Apps inside of /Applications and ~/Applications are displayed in Launchpad. When you launch from Xcode the apps are copied to a temporary build directory. So you have to copy your app to the correct location.
If you only want the Debug version, because you want to test your app, you can simply locate the app bundle in Finder:
Open the Products group in Xcode, right click the .app file and select "Show in Finder". In Finder simply drag & drop the app into the Applications folder.
If you need the Release version you can archive the app. Select Product/Archive in the Xcode menu.
In the Organizer you choose Export, in the Export wizard you select "Export as Mac Application". You can directly save it into the Applications directory, or save it somewhere else and copy or move it into the Applications directory

Updating XCODE using different apple account

I have MAC OS 10.7.3. xcode 4.3.1 installed using different apple id as my macbook pro was used previously by my friend. Now when i try to upgrade Xcode to 4.3.2 it asking credentials for my friends account. Unfortunately App store clearly says you can upgrade an app using the account which was used to install the app.
How can i upgrade Xcode using my credentials?
Thanks in advance.
I am sure you would have solved this by now but just posting the solution here that worked for me..
Open Finder and navigate to Applications,
Ctrl+Click the application and choose "Show Package Contents" (Xcode in this case),
Expand the Contents directory and click the _MASReceipt directory to select it, Type Command+Delete to
delete the directory permanently---you will be prompted for your
credentials since this is a protected file.
Quit and restart
AppStore, then find the application. You can update with your new id now without deleting the old version of the app
Hope this helps someone coz it took me a while to figure out !!
Unfortunately had to answer my own question,
Simple Answer: NO, You cannot update xcode installed from another account.
Solution is to delete the existing installation and re-installing from new account.
To delete the existing installation, you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.
Above solution is assuming you have installed xcode from the mac app store, usually versions later than 4.2. For earlier versions, just deleting /Application/xcode folder should work.
The solution is found:
I had this bug, it's related to Spotlight. The App Store used Spotlight in some way. My fix was to add the entire HD to the "Privacy" tab in the Spotlight System prefs pane, close the prefs and wait 30 seconds, re-open and remove your HD from the Privacy tab. Spolight begins reindexing. Re-opened the App Store and problem was fixed! Posting this here for others who might search later on. Also filed a bug report with Apple.
Source: https://discussions.apple.com/thread/2806858?start=0&tstart=0

Resources