你可以在 Xcode 模拟器上使用 CoreBluetooth 吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21953529/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can you use the CoreBluetooth on Xcode simulator?
提问by Curnelious
I have read Does the iPhone simulator in Xcode support Bluetooth Low Energy?
我已阅读Xcode 中的 iPhone 模拟器是否支持低功耗蓝牙?
I need to establish a connection with BLE
from the mac retina
to the iPad Air
.
Did something has changed and i can now make the connection from the mac ?
我需要建立与BLE
从mac retina
到 的连接iPad Air
。是否发生了一些变化,我现在可以从 mac 建立连接?
How if not, can someone make an app that connect the mac to the iDevice
if you can't establish the connection from mac to iDevice in simulator ?
如果没有,iDevice
如果您无法在模拟器中建立从 mac 到 iDevice 的连接,有人可以制作一个将 mac 连接到的应用程序吗?
Is there a way to do that ?
有没有办法做到这一点 ?
采纳答案by allprog
The simulator is not supported any more since iOS7 and XCode 5. You need a real device to test core bluetooth iOS applications. There were too much issues with the simulator so they finally dropped its support.
从 iOS7 和 XCode 5 开始不再支持模拟器。您需要一个真实的设备来测试核心蓝牙 iOS 应用程序。模拟器有太多问题,所以他们最终放弃了支持。
If you have two iOS devices, then use those for testing. If you have only one, then you can create a Mac app that can simulate the other role. The most efficient way to test highly depends on your application.
如果您有两台 iOS 设备,请使用它们进行测试。如果您只有一个,那么您可以创建一个可以模拟另一个角色的 Mac 应用程序。最有效的测试方法很大程度上取决于您的应用程序。