• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Nonsandboxed app documents won't open from iCloud Drive?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nonsandboxed app documents won't open from iCloud Drive?


  • Subject: Nonsandboxed app documents won't open from iCloud Drive?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 26 Nov 2014 10:28:00 -0500

I just discovered that my OS X apps will not open documents residing in iCloud Drive upon double-clicking.  My app activates, but nothing opens.  At first I thought this might be an intentional restriction by Apple, but such a silent failure will be very confusing to users who have not studied sandboxed vs. nonsandboxed apps!  I would expect at least a Gatekeeper-like warning.  Furthermore, if I click in my app File > Open and navigate into iCloud Drive, I can open documents as expected.

Does anyone know what’s going on here?

Thanks,

Jerry

DETAILS

The test is to move one of my app’s documents into iCloud Drive, then double-click or secondary-click and “Open” or “Open with”.  I have activated breakpoints or in the following methods:

In my NSDocumentController subclass:
   -openDocumentWithContentsOfURL:display:completionHandler:
   -openDocumentWithContentsOfURL:display:error:
   -makeDocumentWithContentsOfURL:ofType:error:

In my NSPersistentDocument subclass:
   -readFromURL:ofType:error:
   -readFromFileWrapper:ofType:error:
   -readFromData:ofType:error:

In my app delegate:
   -application:openFile:

Result: My app activates and remains, but none of these methods gets invoked.  Instead, I see the messages like these in the system console:

14/11/26 9:52:21.717 AM bird[234]: Could not resolve bookmark. Error: Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application." (The connection to service named com.apple.bird was invalidated.) UserInfo=0x7fbb05860650 {NSDebugDescription=The connection to service named com.apple.bird was invalidated.}
14/11/26 9:52:21.745 AM sandboxd[11644]: ([234]) bird(234) deny mach-lookup com.apple.bird
14/11/26 9:52:21.956 AM bird[234]: setting error: Error Domain=BRCloudDocsErrorDomain Code=10 "The operation couldn’t be completed. (BRCloudDocsErrorDomain error 10 - Invalid parameter 'entitlement': com.apple.private.librarian.container-proxy)" UserInfo=0x7fbb0362eca0 {NSDescription=Invalid parameter 'entitlement': com.apple.private.librarian.container-proxy}
14/11/26 9:52:21.957 AM MyApp[11542]: Could not resolve bookmark. Error: Error Domain=BRCloudDocsErrorDomain Code=10 "The operation couldn’t be completed. (BRCloudDocsErrorDomain error 10 - Invalid parameter 'entitlement': com.apple.private.librarian.container-proxy)" UserInfo=0x60000047bcc0 {NSDescription=Invalid parameter 'entitlement': com.apple.private.librarian.container-proxy}

It looks like this “bird” process (something which flies around in iCloud - very cute?) is being denied by sandboxd.  The second message, from sandboxd, has attached a “Full Report”, as shown below.  The report has the form of a crash report, but is apparently just a snapshot of bird's state.  Nothing crashed.

bird(234) deny mach-lookup com.apple.bird

Process:         bird [234]
Path:            /System/Library/PrivateFrameworks/CloudDocsDaemon.framework/Versions/A/Support/bird
Load Address:    0x101f5d000
Identifier:      bird
Version:         ??? (???)
Code Type:       x86_64 (Native)
Parent Process:  launchd [1]

Date/Time:       2014-11-26 09:52:21.716 -0500
OS Version:      Mac OS X 10.10.2 (14C68m)
Report Version:  8

Thread 0:
0   libsystem_kernel.dylib        	0x00007fff853f04de mach_msg_trap + 10

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff853f6232 kevent64 + 10
1   libdispatch.dylib             	0x00007fff83d4ca6a _dispatch_mgr_init + 0

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff853f04de mach_msg_trap + 10
1   libxpc.dylib                  	0x00007fff8f4fc27e xpc_pipe_routine + 252
2   libxpc.dylib                  	0x00007fff8f504e02 _xpc_interface_routine + 163
3   libxpc.dylib                  	0x00007fff8f50516c _xpc_look_up_endpoint + 192
4   libxpc.dylib                  	0x00007fff8f4ff8cf _xpc_connection_bootstrap_look_up_slow + 256
5   libxpc.dylib                  	0x00007fff8f4ff62f _xpc_connection_init + 781
6   libxpc.dylib                  	0x00007fff8f4ff314 _xpc_connection_resume_init + 14
7   libdispatch.dylib             	0x00007fff83d49c13 _dispatch_client_callout + 8
8   libdispatch.dylib             	0x00007fff83d4c88f _dispatch_root_queue_drain + 935
9   libdispatch.dylib             	0x00007fff83d5afe4 _dispatch_worker_thread3 + 91
10  libsystem_pthread.dylib       	0x00007fff82d4d637 _pthread_wqthread + 729
11  libsystem_pthread.dylib       	0x00007fff82d4b40d start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff853f051a semaphore_wait_trap + 10
1   CoreServicesInternal          	0x00007fff8b6c41a9 _CFURLCreateByResolvingBookmarkData + 1081
2   Foundation                    	0x00007fff881b1741 -[NSURL(NSURL) initByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:] + 632
3   Foundation                    	0x00007fff881b186d +[NSURL(NSURL) URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:] + 78
4   Foundation                    	0x00007fff880950e9 -[NSURL(NSURL) initWithCoder:] + 148
5   Foundation                    	0x00007fff88286a09 _decodeObject + 1124
6   Foundation                    	0x00007fff880a0617 _decodeObjectAfterSettingWhitelistForKey + 128
7   Foundation                    	0x00007fff880a0552 -[NSXPCDecoder decodeObjectOfClass:forKey:] + 147
8   Foundation                    	0x00007fff880912d8 _walkAndDecodeData + 1580
9   Foundation                    	0x00007fff88091d64 decodeInvocationArguments + 658
10  Foundation                    	0x00007fff880a14fc -[NSXPCDecoder decodeInvocation] + 438
11  Foundation                    	0x00007fff88286aa4 _decodeObject + 1279
12  Foundation                    	0x00007fff880a0617 _decodeObjectAfterSettingWhitelistForKey + 128
13  Foundation                    	0x00007fff880a0552 -[NSXPCDecoder decodeObjectOfClass:forKey:] + 147
14  Foundation                    	0x00007fff880a2a04 -[NSXPCConnection _decodeAndInvokeMessageWithData:] + 335
15  Foundation                    	0x00007fff880a0059 message_handler + 654
16  libxpc.dylib                  	0x00007fff8f501589 _xpc_connection_call_event_handler + 58
17  libxpc.dylib                  	0x00007fff8f50004b _xpc_connection_mach_event + 1901
18  libdispatch.dylib             	0x00007fff83d4f0f8 _dispatch_client_callout4 + 9
19  libdispatch.dylib             	0x00007fff83d501a3 _dispatch_mach_msg_invoke + 445
20  libdispatch.dylib             	0x00007fff83d4d154 _dispatch_queue_drain + 571
21  libdispatch.dylib             	0x00007fff83d4ea10 _dispatch_mach_invoke + 232
22  libdispatch.dylib             	0x00007fff83d4d154 _dispatch_queue_drain + 571
23  libdispatch.dylib             	0x00007fff83d4eecc _dispatch_queue_invoke + 202
24  libdispatch.dylib             	0x00007fff83d4c6b7 _dispatch_root_queue_drain + 463
25  libdispatch.dylib             	0x00007fff83d5afe4 _dispatch_worker_thread3 + 91
26  libsystem_pthread.dylib       	0x00007fff82d4d637 _pthread_wqthread + 729
27  libsystem_pthread.dylib       	0x00007fff82d4b40d start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff853f594a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff82d4b40d start_wqthread + 13

Binary Images:
    0x7fff82d4a000 -     0x7fff82d53fff  libsystem_pthread.dylib (105.10.1) <3103aa7f-3bae-3673-9649-47ffd7e15c97> /usr/lib/system/libsystem_pthread.dylib
    0x7fff83d48000 -     0x7fff83d72ff7  libdispatch.dylib (442.1.4) <502cf32b-669b-3709-8862-08188225e4f0> /usr/lib/system/libdispatch.dylib
    0x7fff853df000 -     0x7fff853fcfff  libsystem_kernel.dylib (2782.10.65) <4599885f-4429-3f7b-a74f-7d04d6fa155a> /usr/lib/system/libsystem_kernel.dylib
    0x7fff88008000 -     0x7fff88336fff  com.apple.Foundation (6.9 - 1152.11) <63895825-a4ad-34a4-9779-68f572fe69ae> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff8b6b6000 -     0x7fff8b6e5ff7  com.apple.CoreServicesInternal (221.2 - 221.2) <ecceb343-0b70-3a04-bba7-3909c2732c46> /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
    0x7fff8f4f7000 -     0x7fff8f51ffff  libxpc.dylib (559.10.2) <2badfeab-1f10-393a-9ee7-2a1919789b45> /usr/lib/system/libxpc.dylib

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • [BUG] Nonsandboxed app documents won't open from iCloud Drive
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: when has AutoLayout finished its work?
  • Next by Date: Re: Copy AVplayerLayer content to another CALayer on another window (Preview)
  • Previous by thread: Re: when has AutoLayout finished its work?
  • Next by thread: [BUG] Nonsandboxed app documents won't open from iCloud Drive
  • Index(es):
    • Date
    • Thread