Regression: AppKit on 10.11 is seemingly not linked against CloudDocs.framework, resulting in crash

Originator:rick
Number:rdar://22792342 Date Originated:2015-09-21
Status:Open Resolved:
Product:OS X Product Version:10.11.0 (15A282a)
Classification:Crash Reproducible:Yes
 
Summary:
Some methods in AppKit, such as -[NSPathCell _autoUpdateCellContents] contain calls to -[NSURL(BRCloudPathComponent) br_pathComponentDisplayMetadataWithOptions:].

This works in 10.10 because CloudDocs.framework, which is where this method is actually implemented gets linked in. But it looks like CloudDocs.framework doesn't get linked on 10.11, and this ends up getting a "unrecognized selector" crash.

Steps to Reproduce:
Run this code on a 10.11 system:

	NSURL *url = [NSURL fileURLWithPath:[@"~/Library/Mobile Documents/2BUA8C4S2C~com~agilebits~onepassword" stringByExpandingTildeInPath]];
	[self.pathControl setURL:url];


Replace the last part of the path with a valid URL inside of Mobile Documents.

Expected Results:
Not a crash.

Actual Results:
Crash. I've attached a real world crash report, as well as one from my sample code, as well as my sample code.

Version:
Mac OS X 10.11.0 (15A282a)

Notes:
This is a regression. The crash does not exist in 10.10.5.

Configuration:
Hardware seems irrelevant. Only OS X version.

Attachments:
http://cl.ly/2m013E1y1s2W

Comments

the bug report has been closed by apple. can you share some details which OS version fixes the problem?

By autoreleasepool at Jan. 6, 2017, 9:35 a.m. (reply...)

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!