remove xcode recent projects from dock menu
XcodeXcode4Xcode Problem Overview
I would like to remove from Mac OS-X taskbar (Dock) the XCode's recent project menu items.
Everywhere I am searching it says the File->Open Recent->Clear Menu
it will clear, but not.
It doesn't clear from Dock, it clears from inside the XCode
Recent menu.
I believe I should dig somewhere is OS filesystem, but I don't know where.
It was an XCode 4.2
intalled, I did a complete uninstall and installed version 4.3.
But I couldn't clear the Dock's projects menu at version 4.3 either!
Xcode Solutions
Solution 1 - Xcode
Here's what works for me:
- Launch Xcode
- Select
File->Open Recent->Clear Menu
- Right-click the Xcode icon and select "Show All Windows". You should now see only your current document in the recents list at the bottom
- Quit Xcode.
The recents list should now only be populated with your single current project.
Solution 2 - Xcode
- Start Xcode
- In Menu: File -> Open Recent -> Clear Menu
- Close Xcode
- Remove Xcode from Dock
- Reboot
Solution 3 - Xcode
Turned out that all you need to do is:
- Clear Recent Menu with Xcode
- killall Dock
Solution 4 - Xcode
Select File->Open Recent->Clear Menu
Remove Xcode from the dock
Re-add Xcode to the dock
Solution 5 - Xcode
Warning: This solution will wipe the passwords of all your developer accounts in Xcode (Xcode > Preferences > Accounts); If you apply this method, you will have to re-enter them afterwards.
This is what worked for me in El Capitan / Xcode 7. In Terminal:
% defaults delete com.apple.dt.Xcode
% killall Dock
(Source: https://simon.heimlicher.com/articles/2011/07/26/disable-recent-items)
Strangely, the recommended command:
% defaults delete com.apple.dt.Xcode RecentDocuments
...gives the message:
> Domain (com.apple.dt.Xcode) not found. > Defaults have not been changed.
...so I removed the RecentDocuments
part and decided to go nuclear. Haven't checked what else is nuked (other than the passwords mentioned above), so use at your own risk.
Solution 6 - Xcode
- Open Xcode then choose: File -> Open Recent -> Clear Menu
- Open Terminal then type: killall Dock