久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Xcode 中的 iPhone 模擬器是否支持低功耗藍牙?

Does the iPhone simulator in Xcode support Bluetooth Low Energy?(Xcode 中的 iPhone 模擬器是否支持低功耗藍牙?)
本文介紹了Xcode 中的 iPhone 模擬器是否支持低功耗藍牙?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我正在新的 Mac mini 上嘗試一些 iOS 測試應用程序,它支持藍牙低功耗.CoreBluetooth 框架用于這些.但是,我無法讓藍牙在 iPhone 模擬器中工作,這是 Xcode 的一部分.

I'm trying some iOS test applications on the new Mac mini, that supports Bluetooth Low Energy. The CoreBluetooth framework is used in those. However, I'm not able to get Bluetooth working in the iPhone simulator, that is part of Xcode.

當我分配一個新的 CBCentralManager,centralManagerDidUpdateState:接收CBCentralManagerStatePoweredOff,代表藍牙當前已關閉.

When I allocate a new CBCentralManager, centralManagerDidUpdateState: receives CBCentralManagerStatePoweredOff which stands for Bluetooth is currently powered off.

我第一次運行文本應用程序時,打開了一個框,看起來非常有問題(僅使用了語言變量,而不是實際文本)并帶有兩個按鈕.第一個引導我進入設置面板,其中有一個啟用藍牙的選項.但是,在我告訴它啟用藍牙后,它只顯示旋轉動畫,既不會完成也不會取消.即使在重新啟動 Mac 后,仍然只有旋轉動畫.盒子也打不開了.

The first time I ran the text application, a box was then opened up that looked pretty bugged (only language variables were used, not the actual texts) and with two buttons. The first led me to the settings panel where there was an option to enable Bluetooth. However, after I told it to enable Bluetooth, it just shows the spinning animation, and it won't either complete or cancel. Even after rebooting the Mac, there is still only the spinning animation. The box also does not open up anymore.

本質上,我認為 iPhone 模擬器應該支持藍牙低功耗.否則,在模擬器的設置應用程序中有一個選項并沒有真正意義.此外,中央管理器狀態是 CBCentralManagerStatePoweredOff 但不是 CBCentralManagerStateUnsupported 代表平臺不支持低功耗藍牙.這也帶來了支持的希望.

Essentially, I think that the iPhone simulator should support Bluetooth Low Energy. Otherwise, it does not really make sense that there is an option in the settings application on the simulator. Also, the central manager state is CBCentralManagerStatePoweredOff but not CBCentralManagerStateUnsupported which would stand for The platform doesn't support Bluetooth Low Energy. This gives also hope that support could exist.

  • iPhone 模擬器是否支持低功耗藍牙?
  • 如果是,我該如何啟用它?

推薦答案

模擬器 確實支持低功耗藍牙 (4.0).唯一的問題是,即使你有一臺內置 BLE 的計算機,你也無法與它一起使用模擬器,因為(我認為)你占用了 BLE 上的可用性以供其他設備發現你的計算機,從而限制了Mac 的功能.

The simulator does support Bluetooth Low Energy (4.0) according to this appnote from Apple. The only problem is that even if you have a computer with BLE inside, you will not be able to use the simulator together with it, because (I think) you occupy the availability on BLE for other devices to discover your computer, thereby restricting the functionality of the Mac.

所以,如果你自己去買一個 BLE USB 加密狗,你就可以在模擬器中使用它.

So if you go get yourself a BLE USB dongle you will be able to use it in simulator.

從@JoeShaw 添加信息:

Adding information from @JoeShaw:

不幸的是,iOS 7 的模擬器似乎不再支持 Core Bluetooth.參考:doubleencore.com/2013/09/whats-new-in-bluetooth-le-ios-7.此外,鏈接的技術說明似乎已被刪除.

Unfortunately it appears as though Core Bluetooth support has been dropped from the simulator for iOS 7. Reference: doubleencore.com/2013/09/whats-new-in-bluetooth-le-ios-7. In addition, the linked technote seems to have been removed.

這篇關于Xcode 中的 iPhone 模擬器是否支持低功耗藍牙?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Using Instruments to test an iOS app without having source code to the application(在沒有應用程序源代碼的情況下使用 Instruments 測試 iOS 應用程序)
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應用程序以找出罕見 UI 錯誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態和動態單元格中處理單元格選擇)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中刪除 Safari 中的地址欄?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級到 Xcode 4.5 后,iOS 5 SDK 消失了)
主站蜘蛛池模板: 国产2区 | 91视频在线| 国产精品日日做人人爱 | 草久久久 | 国产亚洲精品久久19p | 特级做a爱片免费69 精品国产鲁一鲁一区二区张丽 | av天天操 | 亚洲国产一区二区三区四区 | 国产精品一区二区三区四区 | 二区欧美 | 国产精品日产欧美久久久久 | 国产探花 | 99精品免费 | 精品一二三区 | 亚洲国产高清在线观看 | 成人在线观看网址 | 亚洲综合激情 | 日韩一区二区免费视频 | 久久国产电影 | 午夜精品 | 91久久精品| 国产免费一区二区三区网站免费 | 欧美影院 | 不卡一区二区在线观看 | 亚洲一区二区三 | 亚洲国产一区二区三区在线观看 | 最新免费黄色网址 | 97国产爽爽爽久久久 | 精品国产乱码久久久久久88av | 久久久精品影院 | 免费成年网站 | 日本一区二区影视 | 久久久久国产精品一区二区 | 久久亚洲国产 | 草久免费视频 | 久久影院一区 | 国产主播第一页 | 国产亚洲精品综合一区 | 91在线播 | 992tv人人草 久久精品超碰 | 日韩欧美高清 |