CBPeripheralManager startAdvertising not working on OS X yosemite

别等时光非礼了梦想. 提交于 2019-12-30 06:36:04

问题


does anyone notice any issues when using your mac (running OS X 10.10 yosemite DP 6) as an iBeacon? I tried several tools and I also developed it myself (using the CBPeripheralManager startAdvertising) but without any luck.

When running those apps (+ the the code I developed myself) on a mac running OS X 10.9 Mavericks, it works like a charm.

Is there anything specific required for OS X 10.10 yosemite or is this a bug?

Any help is appreciated!


回答1:


EDIT: Radius Networks has confirmed this issue has shown up on subsequent pre-releases of Yosemite. This OS veesion blocks sending an iBeacon transmission with the internal interface, but allows it with external interfaces. So you can add an external Bluetooth dongle like the GBU521 and transmission works again.

It's gotta be a bug in the code or something specific to your machine. We have tested our MacBeacon OSX app on Yosemite and have not noticed any problems.




回答2:


In fact you can indeed advertise your Mac running Yosemite as an iBeacon with an external compatible Bluetooth 4.0 (USB).
I wrote a simple iBeacon transmitter for Yosemite written in Swift, look here https://updatemycode.com/2014/11/29/yosemite-as-an-ibeacon-swift/.




回答3:


This does seem to be a problem with Yosemite 10.10. This is acknowledged now on the radius network website: http://www.radiusnetworks.com/ibeacon/macbeacon/

I'm having to buy usb beacons that I can easily power on and off for testing because of this issue.




回答4:


I didn't test this with 10.10, but I'm able to use 10.11.3 to advertise as a beacon (at least with the project from @mgigirey). Perhaps Apple opened this again?



来源:https://stackoverflow.com/questions/25492316/cbperipheralmanager-startadvertising-not-working-on-os-x-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!