Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppleEvents: Send port for process has no send right

I'm seeing this in my Mac OS X Yosemite Console:

AppleEvents: Send port for process has no send right, 
port=( port:30743/0x7817 rcv:1,send:0,d:0 limit:5)    
(findOrCreate()/AEMachUtils.cp #526) 
com.apple.NSXPCConnection.user.1963

I'm developing an XPC service that handles inter-process communication from a client Mac OS App running on the same Mac.

Obviously the error is coming from:

(findOrCreate() method of /AEMachUtils.cp #526 (Line #?)

The XPC service receives the request and calls the right methods to handle the request but each time I see the above warning. The @protocol is:

 - (oneway void)doService:(NSString *)aString withReply:(void (^)(NSString *))reply;

I never see the reply NSString comeback. Does the - (oneway void) have something to do with that? The error appears in the Console tracking stderr for theXPCservice. Is the error saying that I need to give rights to the sender process? If so how?

Thanks in advance for your consideration. Regards, AK

like image 697
Arius Kahn Avatar asked May 15 '15 21:05

Arius Kahn


1 Answers

Take a look at Apple's Q&A 1888.

Sending apple events requires a scripting-targets entitlement, and from the error I suspect you don't have one.

like image 198
Mark Lilback Avatar answered Nov 15 '22 03:11

Mark Lilback