Launch Services and Finder are Out Of Sync (OS X)
| Originator: | zorgiepoo | ||
| Number: | rdar://22945313 | Date Originated: | 01-Oct-2015 |
| Status: | Duplicate of 22272394 (Closed) | Resolved: | Yes (10.11.4) |
| Product: | OS X | Product Version: | 10.11 (15A284) |
| Classification: | Reproducible: | Always |
Summary: When an app is updated, Finder never reflects the changes (even if the modification date has been updated or it's been registered via LSRegisterURL), such as its short version string (eg: 1.0). I did not reproduce this in 10.10 but I have reproduced this in 10.11, usually always. Steps to Reproduce: 1. Download the Xcode project I've attached 2. Open the project. Build the OS X application. 3. Reveal the application in Finder. Note the version is 1.0 from Finder. 4. In the Xcode project, change the Info.plist keys CFBundleShortVersionString and CFBundleVersion to values 1.1, and 2 respectively. 5. Do a Clean in Xcode 6. Build the application again. Reveal it in Finder. Note that the application still displays as version 1.0 in Finder even though you changed it. Another reproducible test case: 1. Build the app from the Xcode project and reveal it in Finder. Note the version info Finder displays you. 2. Modify the app's info.plist file via a text editor by increasing the short version string and bundle version, in the same fashion as the test case above. 3. Run /usr/bin/touch on the app to update its modification date 4. Note that Finder still does not reflect the changes made to the app. --- Also note that it is a problem with Finder not Launch Services. This is verifiable if you execute: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump and look at the output available for the application that was altered. Expected Results: I expect Finder to reflect the changes that were made to the app, since Launch Services is updated, Finder should be too. Actual Results: Finder does not reflect the changes made to an app that has been updated in-place, even through keeping the modification date up-to-date. As documented on: https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html "Note: You can update an application’s modification time using the BSD touch command in a Terminal window. For example, the command touch /Applications/TextEdit.app sets the modification time of TextEdit to the current time" This should be a valid approach. Indeed, Launch Service recognizes the changes, but Finder doesn't. Version: 10.11 (15A284) Xcode 7.0.1 (7A1001) Notes: This affects software that updates the app in-place, and also affects Xcode building when you change the version information. Configuration: Happens on El Capitan but has not happened to me on Yosemite. Note: this can pretty much be reproduced to any kind of application; you do need the project uploaded in this report. A workaround is to relaunch Finder from the force-quit menu. It turns out Finder updates the modification date, but not the short version string.
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!
Engineering has determined that your bug report (22945313) is a duplicate of another issue (22272394) and will be closed.
The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.
An example of the duplicate section from the bug reporter user interface with your bug and the duplicate bug info is included below:
22945313 Launch Services and Finder are Out Of Sync (OS X)
State: Closed Product:
Rank: No Value
Duplicate of 22272394 (Open)