Xcode iOS 模拟器的设置 > 蓝牙只是旋转并且没有打开
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16220953/
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
Xcode iOS simulator's Settings > Bluetooth just spins and doesn't turn on
提问by Doug Null
I'm trying Apples BTLE Core Bluetooth test app. But when I run on the iOS Simulator, it doesn't work because Simulator's Settings > Bluetooth was off.
我正在尝试 Apples BTLE Core 蓝牙测试应用程序。但是当我在 iOS 模拟器上运行时,它不起作用,因为模拟器的设置 > 蓝牙已关闭。
But when I click Settings > Bluetooth to turn it on, it opens the right-hand Bluetooth pane and just shows the busy rotator, and never turns on.
但是,当我单击“设置”>“蓝牙”将其打开时,它会打开右侧的“蓝牙”窗格并仅显示繁忙的旋转器,而永远不会打开。
Same problem simulating iPhone or iPad.
同样的问题模拟 iPhone 或 iPad。
POSSIBLE SOLUTION ALREADY: I just found this Apple Tech note, http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
可能的解决方案:我刚刚找到了这个 Apple 技术说明, http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
If solution, then I will add the answer to this question, so that others may benefit.
如果解决了,那么我会添加这个问题的答案,以便其他人可以受益。
采纳答案by Doug Null
This tech note from Apple describes the complete procedure for getting ios simulator to do Bluetooth.
Apple 的这份技术说明描述了让 ios 模拟器执行蓝牙的完整过程。
http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
http://developer.apple.com/library/ios/#technotes/tn2295/_index.html
I bought the Bluetooth LE USB dongle at Best Buy. Be sure to ask for one with Bluetooth 4.0 because they still sell 2.0 (cheap).
我在百思买购买了蓝牙 LE USB 加密狗。一定要找一个带蓝牙 4.0 的,因为他们仍然卖 2.0(便宜)。
回答by AndrewCr
This is no longer supported, unfortunately. (As of Xcode 5.0, iOS7) The tech note has been taken down and this third-party article describes some of the changes, including loss of BTLE support in the simulator: http://www.doubleencore.com/2013/09/whats-new-in-bluetooth-le-ios-7/
不幸的是,这不再受支持。(从 Xcode 5.0、iOS7 开始)技术说明已被删除,这篇第三方文章描述了一些变化,包括模拟器中失去对 BTLE 的支持:http: //www.doubleencore.com/2013/09/蓝牙新功能-le-ios-7/