Spotlight does not find archived apps

Originator:lucius.kwok
Number:rdar://8935310 Date Originated:2011-01-30
Status:Open Resolved:
Product:Mac OS X Product Version:10.6.6 (10J567)
Classification:UI/Usability Reproducible:Always reproducible
 
Summary: Apps saved by Xcode's Build and Archive command cannot be found by Spotlight. The same app is still found if you open the contextual menu on a file that that app opens. It also is found by the Installer, resulting in a related bug where the Installer installs over an app that can't be later found via Spotlight.

Steps to Reproduce:
1. Open an existing Mac OS app project or create a new one, setting the bundle ID to a unique value.
2. Build and Archive the app.
3. Open the Organizer from the Window menu.
4. Click on the archived app in the Organizer's sidebar.
5. Right click on the archived app, and select Show In Finder and open the folder for the archive to verify the location of the app.
6. Verify that the archive is not compressed and the app can be launched by double clicking it.
7. Open the Spotlight search field and type in the name of the app.
8. Verify that the copy of the app in the archive does not show up in Spotlight results.
9. Click the Show All option.
10. Verify that the app does not show up in the search results.

Expected Results: Spotlight should find the archived app.

Actual Results: Spotlight does not find the archived app.

Regression: The Installer does find the same archived app, so if you run the Installer package created from the archived app, it replaces the archived copy of the app, and the newly installed app cannot be found with Spotlight. Also, if you right-click on a file that the app opens, the Open With submenu will show the archived versions of the app. Launching that app and right-clicking the dock icon will let you find the location of that app.

Notes: Related to another bug report I will file about Installer installing over archived apps.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!