Re: debugging AirDrop (update)

2016-06-01 Thread Greg Parker

> On Jun 1, 2016, at 4:52 AM, Gerriet M. Denkmann  wrote:
> 
> Some Apple engineer asked me to do 3 to 5 reboots.
> This sounded like voodoo to me, but I duly did 3 reboots.
> Now my iPad gets discovered again (was undiscovered for a week, a reboot did 
> not change anything).
> 
> Can anybody explain why 3 reboots ≠ 1 reboot?


One possibility: some systems will reset caches or other state if the previous 
uptime was too short. This gets you out of reboot loops when a cache gets 
corrupted, for example.


-- 
Greg Parker gpar...@apple.com  Runtime 
Wrangler


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: debugging AirDrop (update)

2016-06-01 Thread Gerriet M. Denkmann
Some Apple engineer asked me to do 3 to 5 reboots.
This sounded like voodoo to me, but I duly did 3 reboots.
Now my iPad gets discovered again (was undiscovered for a week, a reboot did 
not change anything).

Can anybody explain why 3 reboots ≠ 1 reboot?

Gerriet.


> On 28 May 2016, at 02:06, Jens Alfke  wrote:
> 
> File a bug report with Apple!
> 
> —Jens (who has intermittent troubles with AirDrop too)
> 
>> On May 27, 2016, at 10:47 AM, Gerriet M. Denkmann  
>> wrote:
>> 
>> 
>>> On 27 May 2016, at 23:18, Steve Christensen  wrote:
>>> 
>>> I haven't worked with AirDrop, but I just looked at the docs and one of the 
>>> delegate methods is -sharingService:didFailToShareItems:error:. Maybe if 
>>> you implement that you can at least see what the specific error is?
>>> 
>> 
>> Well, it does not tell anything. Never gets called. The problem: if there is 
>> no-one found to share things with, then there can be no sharing, and thus no 
>> errors while sharing.
>> 
>> “Invoked when the sharing service encountered an error when sharing items.”
>> 
>> But thanks for the suggestion. It is better to have this delegate method 
>> implemented.
>> 
>> Kind regards,
>> 
>> Gerriet.
>> 
>> 
>>> 
>>> 
 On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
 wrote:
 
 I have an OS X app (10.11.5) which has a button called AirDrop, which does:
 
 - (IBAction)airDrop: (NSButton *)sender
 {
NSArray *shareItems = list of one or more urls of pdf files
NSSharingService *service = [ NSSharingService sharingServiceNamed: 
 NSSharingServiceNameSendViaAirDrop];
service.delegate = self;//  probably not needed
[service performWithItems:shareItems];
 }
 
 Usually this just works:
 I click the AirDrop button, a Panel slides down with a picture of the pdf 
 (or a symbol for multiple files if more than one).
 I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
 The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
 picture, I click it, and all is well.
 
 Sometimes it does not work correctly:
 In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
 picture will appear on the Mac and it will still work.
 
 But sometimes it does not work at all: 
 I can do whatever (like restarting the iPad; restarting the Mac) but still 
 no picture of a recipient will appear in the Mac AirDrop Panel. 
 
 How can I debug this?
 
 Gerriet.
 
 Found some log messages, which seem to be related:
 
 Clicking my AirDrop button:
 
 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
 started
 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
 Powered On
 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
 hashes <01ca38ce b5742b51 4900>
 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
 SDBonjourBrowser::failedToStartAdvertisingWithError Error 
 Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
 UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
 this time.}
 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
 SDBonjourBrowser::failedToStartAdvertisingWithError Error 
 Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
 UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
 this time.}
 
 Clicking “Cancel" in the AirDrop Panel:
 
 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
 CoreDragRemoveTrackingHandler: -1856
 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
 CoreDragRemoveReceiveHandler: -1856
 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
 stopped
 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
 stopped
 
 But still don’t know what to do.
 
 Gerriet.
>>> 
>> 
>> 
>> ___
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/jens%40mooseyard.com
>> 
>> This email sent to j...@mooseyard.com
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: debugging AirDrop (update)

2016-05-30 Thread Britt Durbrow
FWIW, I have that experience just using Apple’s own apps... It works most of 
the time, but sometimes, it just… doesn’t.

So, it might well not be anything you are doing (or not doing, as the case may 
be).

> On May 27, 2016, at 1:10 PM, Gerriet M. Denkmann  wrote:
> 
> 
>> On 28 May 2016, at 02:06, Jens Alfke  wrote:
>> 
>> File a bug report with Apple!
> 
> Just done.
> 
>> 
>> —Jens (who has intermittent troubles with AirDrop too)
>> 
>>> On May 27, 2016, at 10:47 AM, Gerriet M. Denkmann  
>>> wrote:
>>> 
>>> 
 On 27 May 2016, at 23:18, Steve Christensen  wrote:
 
 I haven't worked with AirDrop, but I just looked at the docs and one of 
 the delegate methods is -sharingService:didFailToShareItems:error:. Maybe 
 if you implement that you can at least see what the specific error is?
 
>>> 
>>> Well, it does not tell anything. Never gets called. The problem: if there 
>>> is no-one found to share things with, then there can be no sharing, and 
>>> thus no errors while sharing.
>>> 
>>> “Invoked when the sharing service encountered an error when sharing items.”
>>> 
>>> But thanks for the suggestion. It is better to have this delegate method 
>>> implemented.
>>> 
>>> Kind regards,
>>> 
>>> Gerriet.
>>> 
>>> 
 
 
> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
> wrote:
> 
> I have an OS X app (10.11.5) which has a button called AirDrop, which 
> does:
> 
> - (IBAction)airDrop: (NSButton *)sender   
> {
>   NSArray *shareItems = list of one or more urls of pdf files
>   NSSharingService *service = [ NSSharingService sharingServiceNamed: 
> NSSharingServiceNameSendViaAirDrop];
>   service.delegate = self;//  probably not needed
>   [service performWithItems:shareItems];
> }
> 
> Usually this just works:
> I click the AirDrop button, a Panel slides down with a picture of the pdf 
> (or a symbol for multiple files if more than one).
> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
> picture, I click it, and all is well.
> 
> Sometimes it does not work correctly:
> In this case I have to set the iPad to “AirDrop: Everyone". A generic 
> user picture will appear on the Mac and it will still work.
> 
> But sometimes it does not work at all: 
> I can do whatever (like restarting the iPad; restarting the Mac) but 
> still no picture of a recipient will appear in the Mac AirDrop Panel. 
> 
> How can I debug this?
> 
> Gerriet.
> 
> Found some log messages, which seem to be related:
> 
> Clicking my AirDrop button:
> 
> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
> started
> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
> Powered On
> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
> hashes <01ca38ce b5742b51 4900>
> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
> this time.}
> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
> this time.}
> 
> Clicking “Cancel" in the AirDrop Panel:
> 
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
> CoreDragRemoveTrackingHandler: -1856
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
> CoreDragRemoveReceiveHandler: -1856
> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
> stopped
> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
> stopped
> 
> But still don’t know what to do.
> 
> Gerriet.
 
>>> 
>>> 
>>> ___
>>> 
>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>> 
>>> 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:
>>> https://lists.apple.com/mailman/options/cocoa-dev/jens%40mooseyard.com
>>> 
>>> This email sent to j...@mooseyard.com
>> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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 

Re: debugging AirDrop (update)

2016-05-27 Thread Gerriet M. Denkmann

> On 28 May 2016, at 02:06, Jens Alfke  wrote:
> 
> File a bug report with Apple!

Just done.

> 
> —Jens (who has intermittent troubles with AirDrop too)
> 
>> On May 27, 2016, at 10:47 AM, Gerriet M. Denkmann  
>> wrote:
>> 
>> 
>>> On 27 May 2016, at 23:18, Steve Christensen  wrote:
>>> 
>>> I haven't worked with AirDrop, but I just looked at the docs and one of the 
>>> delegate methods is -sharingService:didFailToShareItems:error:. Maybe if 
>>> you implement that you can at least see what the specific error is?
>>> 
>> 
>> Well, it does not tell anything. Never gets called. The problem: if there is 
>> no-one found to share things with, then there can be no sharing, and thus no 
>> errors while sharing.
>> 
>> “Invoked when the sharing service encountered an error when sharing items.”
>> 
>> But thanks for the suggestion. It is better to have this delegate method 
>> implemented.
>> 
>> Kind regards,
>> 
>> Gerriet.
>> 
>> 
>>> 
>>> 
 On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
 wrote:
 
 I have an OS X app (10.11.5) which has a button called AirDrop, which does:
 
 - (IBAction)airDrop: (NSButton *)sender
 {
NSArray *shareItems = list of one or more urls of pdf files
NSSharingService *service = [ NSSharingService sharingServiceNamed: 
 NSSharingServiceNameSendViaAirDrop];
service.delegate = self;//  probably not needed
[service performWithItems:shareItems];
 }
 
 Usually this just works:
 I click the AirDrop button, a Panel slides down with a picture of the pdf 
 (or a symbol for multiple files if more than one).
 I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
 The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
 picture, I click it, and all is well.
 
 Sometimes it does not work correctly:
 In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
 picture will appear on the Mac and it will still work.
 
 But sometimes it does not work at all: 
 I can do whatever (like restarting the iPad; restarting the Mac) but still 
 no picture of a recipient will appear in the Mac AirDrop Panel. 
 
 How can I debug this?
 
 Gerriet.
 
 Found some log messages, which seem to be related:
 
 Clicking my AirDrop button:
 
 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
 started
 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
 Powered On
 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
 hashes <01ca38ce b5742b51 4900>
 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
 SDBonjourBrowser::failedToStartAdvertisingWithError Error 
 Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
 UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
 this time.}
 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
 SDBonjourBrowser::failedToStartAdvertisingWithError Error 
 Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
 UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
 this time.}
 
 Clicking “Cancel" in the AirDrop Panel:
 
 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
 CoreDragRemoveTrackingHandler: -1856
 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
 CoreDragRemoveReceiveHandler: -1856
 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
 stopped
 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
 stopped
 
 But still don’t know what to do.
 
 Gerriet.
>>> 
>> 
>> 
>> ___
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/jens%40mooseyard.com
>> 
>> This email sent to j...@mooseyard.com
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: debugging AirDrop (update)

2016-05-27 Thread Jens Alfke
File a bug report with Apple!

—Jens (who has intermittent troubles with AirDrop too)

> On May 27, 2016, at 10:47 AM, Gerriet M. Denkmann  
> wrote:
> 
> 
>> On 27 May 2016, at 23:18, Steve Christensen  wrote:
>> 
>> I haven't worked with AirDrop, but I just looked at the docs and one of the 
>> delegate methods is -sharingService:didFailToShareItems:error:. Maybe if you 
>> implement that you can at least see what the specific error is?
>> 
> 
> Well, it does not tell anything. Never gets called. The problem: if there is 
> no-one found to share things with, then there can be no sharing, and thus no 
> errors while sharing.
> 
> “Invoked when the sharing service encountered an error when sharing items.”
> 
> But thanks for the suggestion. It is better to have this delegate method 
> implemented.
> 
> Kind regards,
> 
> Gerriet.
> 
> 
>> 
>> 
>>> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
>>> wrote:
>>> 
>>> I have an OS X app (10.11.5) which has a button called AirDrop, which does:
>>> 
>>> - (IBAction)airDrop: (NSButton *)sender 
>>> {
>>> NSArray *shareItems = list of one or more urls of pdf files
>>> NSSharingService *service = [ NSSharingService sharingServiceNamed: 
>>> NSSharingServiceNameSendViaAirDrop];
>>> service.delegate = self;//  probably not needed
>>> [service performWithItems:shareItems];
>>> }
>>> 
>>> Usually this just works:
>>> I click the AirDrop button, a Panel slides down with a picture of the pdf 
>>> (or a symbol for multiple files if more than one).
>>> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
>>> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
>>> picture, I click it, and all is well.
>>> 
>>> Sometimes it does not work correctly:
>>> In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
>>> picture will appear on the Mac and it will still work.
>>> 
>>> But sometimes it does not work at all: 
>>> I can do whatever (like restarting the iPad; restarting the Mac) but still 
>>> no picture of a recipient will appear in the Mac AirDrop Panel. 
>>> 
>>> How can I debug this?
>>> 
>>> Gerriet.
>>> 
>>> Found some log messages, which seem to be related:
>>> 
>>> Clicking my AirDrop button:
>>> 
>>> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
>>> started
>>> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
>>> Powered On
>>> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
>>> hashes <01ca38ce b5742b51 4900>
>>> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
>>> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
>>> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
>>> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
>>> this time.}
>>> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
>>> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
>>> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
>>> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
>>> this time.}
>>> 
>>> Clicking “Cancel" in the AirDrop Panel:
>>> 
>>> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
>>> CoreDragRemoveTrackingHandler: -1856
>>> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
>>> CoreDragRemoveReceiveHandler: -1856
>>> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
>>> stopped
>>> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
>>> stopped
>>> 
>>> But still don’t know what to do.
>>> 
>>> Gerriet.
>> 
> 
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/jens%40mooseyard.com
> 
> This email sent to j...@mooseyard.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: debugging AirDrop (update)

2016-05-27 Thread Gerriet M. Denkmann

> On 27 May 2016, at 23:18, Steve Christensen  wrote:
> 
> I haven't worked with AirDrop, but I just looked at the docs and one of the 
> delegate methods is -sharingService:didFailToShareItems:error:. Maybe if you 
> implement that you can at least see what the specific error is?
> 

Well, it does not tell anything. Never gets called. The problem: if there is 
no-one found to share things with, then there can be no sharing, and thus no 
errors while sharing.

“Invoked when the sharing service encountered an error when sharing items.”

But thanks for the suggestion. It is better to have this delegate method 
implemented.

Kind regards,

Gerriet.


> 
> 
>> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
>> wrote:
>> 
>> I have an OS X app (10.11.5) which has a button called AirDrop, which does:
>> 
>> - (IBAction)airDrop: (NSButton *)sender  
>> {
>>  NSArray *shareItems = list of one or more urls of pdf files
>>  NSSharingService *service = [ NSSharingService sharingServiceNamed: 
>> NSSharingServiceNameSendViaAirDrop];
>>  service.delegate = self;//  probably not needed
>>  [service performWithItems:shareItems];
>> }
>> 
>> Usually this just works:
>> I click the AirDrop button, a Panel slides down with a picture of the pdf 
>> (or a symbol for multiple files if more than one).
>> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
>> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
>> picture, I click it, and all is well.
>> 
>> Sometimes it does not work correctly:
>> In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
>> picture will appear on the Mac and it will still work.
>> 
>> But sometimes it does not work at all: 
>> I can do whatever (like restarting the iPad; restarting the Mac) but still 
>> no picture of a recipient will appear in the Mac AirDrop Panel. 
>> 
>> How can I debug this?
>> 
>> Gerriet.
>> 
>> Found some log messages, which seem to be related:
>> 
>> Clicking my AirDrop button:
>> 
>> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
>> started
>> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
>> Powered On
>> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
>> hashes <01ca38ce b5742b51 4900>
>> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
>> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
>> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
>> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
>> this time.}
>> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
>> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
>> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
>> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
>> this time.}
>> 
>> Clicking “Cancel" in the AirDrop Panel:
>> 
>> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
>> CoreDragRemoveTrackingHandler: -1856
>> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
>> CoreDragRemoveReceiveHandler: -1856
>> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
>> stopped
>> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
>> stopped
>> 
>> But still don’t know what to do.
>> 
>> Gerriet.
> 


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: debugging AirDrop (update)

2016-05-27 Thread Steve Christensen
I haven't worked with AirDrop, but I just looked at the docs and one of the 
delegate methods is -sharingService:didFailToShareItems:error:. Maybe if you 
implement that you can at least see what the specific error is?

Steve


> On May 26, 2016, at 10:23 PM, Gerriet M. Denkmann  
> wrote:
> 
> I have an OS X app (10.11.5) which has a button called AirDrop, which does:
> 
> - (IBAction)airDrop: (NSButton *)sender   
> {
>   NSArray *shareItems = list of one or more urls of pdf files
>   NSSharingService *service = [ NSSharingService sharingServiceNamed: 
> NSSharingServiceNameSendViaAirDrop];
>   service.delegate = self;//  probably not needed
>   [service performWithItems:shareItems];
> }
> 
> Usually this just works:
> I click the AirDrop button, a Panel slides down with a picture of the pdf (or 
> a symbol for multiple files if more than one).
> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login 
> picture, I click it, and all is well.
> 
> Sometimes it does not work correctly:
> In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
> picture will appear on the Mac and it will still work.
> 
> But sometimes it does not work at all: 
> I can do whatever (like restarting the iPad; restarting the Mac) but still no 
> picture of a recipient will appear in the Mac AirDrop Panel. 
> 
> How can I debug this?
> 
> Gerriet.
> 
> Found some log messages, which seem to be related:
> 
> Clicking my AirDrop button:
> 
> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
> started
> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser 
> Powered On
> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising 
> hashes <01ca38ce b5742b51 4900>
> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
> this time.}
> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
> SDBonjourBrowser::failedToStartAdvertisingWithError Error 
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at 
> this time.}
> 
> Clicking “Cancel" in the AirDrop Panel:
> 
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
> CoreDragRemoveTrackingHandler: -1856
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in 
> CoreDragRemoveReceiveHandler: -1856
> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
> stopped
> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising 
> stopped
> 
> But still don’t know what to do.
> 
> Gerriet.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: debugging AirDrop (update)

2016-05-27 Thread Charles Jenkins
My family and I all have iPhones. We often try to use AirDrop to share
photos and videos of my grandbabies. It almost never works. We’re on the
same AirPort-based wireless network and all have Bluetooth on, in case that
matters. When sitting right next to one another, Airdrop will often just
sit there not showing anyone to share to. Sometimes if you close and open
the share sheet a few times, the other person’s generic user icon will
appear in the share sheet, and when it does the transfers always seem to
succeed. But discovery seems to be an issue with AirDrop in general, so
these problems you experience may not be due in any way to problems within
your app.

On Fri, May 27, 2016 at 1:23 AM, Gerriet M. Denkmann 
wrote:

> I have an OS X app (10.11.5) which has a button called AirDrop, which does:
>
> - (IBAction)airDrop: (NSButton *)sender
> {
> NSArray *shareItems = list of one or more urls of pdf files
> NSSharingService *service = [ NSSharingService
> sharingServiceNamed: NSSharingServiceNameSendViaAirDrop];
> service.delegate = self;//  probably not needed
> [service performWithItems:shareItems];
> }
>
> Usually this just works:
> I click the AirDrop button, a Panel slides down with a picture of the pdf
> (or a symbol for multiple files if more than one).
> I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
> The AirDrop panel on the Mac shows (after a few seconds) my Mac Login
> picture, I click it, and all is well.
>
> Sometimes it does not work correctly:
> In this case I have to set the iPad to “AirDrop: Everyone". A generic user
> picture will appear on the Mac and it will still work.
>
> But sometimes it does not work at all:
> I can do whatever (like restarting the iPad; restarting the Mac) but still
> no picture of a recipient will appear in the Mac AirDrop Panel.
>
> How can I debug this?
>
> Gerriet.
>
> Found some log messages, which seem to be related:
>
> Clicking my AirDrop button:
>
> 27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery
> started
> 27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser
> Powered On
> 27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising
> hashes <01ca38ce b5742b51 4900>
> 27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 :
> SDBonjourBrowser::failedToStartAdvertisingWithError Error
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access"
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at
> this time.}
> 27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 :
> SDBonjourBrowser::failedToStartAdvertisingWithError Error
> Domain=NSMachErrorDomain Code=8 "(os/kern) no access"
> UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at
> this time.}
>
> Clicking “Cancel" in the AirDrop Panel:
>
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in
> CoreDragRemoveTrackingHandler: -1856
> 27/05/2016 12:19:46.595 AirDrop[17426]: Error in
> CoreDragRemoveReceiveHandler: -1856
> 27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery
> stopped
> 27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising
> stopped
>
> But still don’t know what to do.
>
> Gerriet.
>
>
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/cejwork%40gmail.com
>
> This email sent to cejw...@gmail.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

debugging AirDrop (update)

2016-05-26 Thread Gerriet M. Denkmann
I have an OS X app (10.11.5) which has a button called AirDrop, which does:

- (IBAction)airDrop: (NSButton *)sender 
{
NSArray *shareItems = list of one or more urls of pdf files
NSSharingService *service = [ NSSharingService sharingServiceNamed: 
NSSharingServiceNameSendViaAirDrop];
service.delegate = self;//  probably not needed
[service performWithItems:shareItems];
}

Usually this just works:
I click the AirDrop button, a Panel slides down with a picture of the pdf (or a 
symbol for multiple files if more than one).
I grab my iPad (which has “AirDrop: Contacts Only" set) and unlock it.
The AirDrop panel on the Mac shows (after a few seconds) my Mac Login picture, 
I click it, and all is well.

Sometimes it does not work correctly:
In this case I have to set the iPad to “AirDrop: Everyone". A generic user 
picture will appear on the Mac and it will still work.

But sometimes it does not work at all: 
I can do whatever (like restarting the iPad; restarting the Mac) but still no 
picture of a recipient will appear in the Mac AirDrop Panel. 

How can I debug this?

Gerriet.

Found some log messages, which seem to be related:

Clicking my AirDrop button:

27/05/2016 12:17:41.630 sharingd[17313]: 12:17:41.629 : Bonjour discovery 
started
27/05/2016 12:17:41.662 sharingd[17313]: 12:17:41.662 : BTLE advertiser Powered 
On
27/05/2016 12:17:41.664 sharingd[17313]: 12:17:41.663 : BTLE advertising hashes 
<01ca38ce b5742b51 4900>
27/05/2016 12:17:41.667 sharingd[17313]: 12:17:41.666 : 
SDBonjourBrowser::failedToStartAdvertisingWithError Error 
Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at this 
time.}
27/05/2016 12:17:43.720 sharingd[17313]: 12:17:43.719 : 
SDBonjourBrowser::failedToStartAdvertisingWithError Error 
Domain=NSMachErrorDomain Code=8 "(os/kern) no access" 
UserInfo={NSLocalizedDescription=wirelessproxd can't start advertising at this 
time.}

Clicking “Cancel" in the AirDrop Panel:

27/05/2016 12:19:46.595 AirDrop[17426]: Error in CoreDragRemoveTrackingHandler: 
-1856
27/05/2016 12:19:46.595 AirDrop[17426]: Error in CoreDragRemoveReceiveHandler: 
-1856
27/05/2016 12:19:46.658 sharingd[17313]: 12:19:46.657 : Bonjour discovery 
stopped
27/05/2016 12:19:46.671 sharingd[17313]: 12:19:46.671 : BTLE advertising stopped

But still don’t know what to do.

Gerriet.


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com