To resolve this issue, you need to complete two steps.
- Remove all instances of your application. Most likely, the copies will be hidden in your home folder in ~ / Library / Developer / Xcode / DerivedData /
- Reset the
user
domain in the startup services database using /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain user
The lsregister command manages the startup service database or a database that tracks applications installed on your Mac and what types of files they open.
You only need to reset the user
domain (as opposed to another answer from Mat E., which also resets the system
and local
domain), since your Xcode DerivedData exists in your individual user directory. Only resetting this domain will prevent the reappearance of unnecessary warnings about the launch of the application.
source share