iOS 6中 - BluetoothManager框架 - " NSObject的"未找到错误
我的问题是this一。但是,一个(正确地)得到了封闭非建设性的,零和的回答绝对没有使用任何人。
My question is a duplicate of this one. But that one (rightly)got closed as non constructive, with zero answer and with absolutely no use to anyone.
我想从我的iPhone 5连接到外部的蓝牙附件附件为既不MFI认证,也不支持蓝牙低功耗通信
I am trying to connect to a external bluetooth accessory from my iPhone 5. The accessory is neither MFI certified nor support Bluetooth Low energy communication.
所以,我唯一的选择是使用私有框架连接到它,而我这样做,因为我不打算给我的应用推到应用程序商店。该应用程序是供个人使用。
So my only option is to connect to it using a private Framework, and I am doing that since I am not intending to push my app to App store. The app is for personal use.
我想使用私人BluetoothManager框架类,用X code 4.6和我的应用程序中定位iOS 6.0。
I am trying to use private BluetoothManager framework class, uses XCode 4.6 and my app is targeting iOS 6.0.
-
在bluetoothManager框架命名添加页眉SDK中的文件夹
文件夹
Added a folder named Headers in bluetoothManager framework in sdk folder
/Applications/X$c$c.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework
创建该文件夹中4头文件,即
Created 4 header files in that folder, namely
- BluetoothAudioJack.h
- BluetoothManager.h
- BluetoothDevice.h
-
CTStructures.h
- BluetoothAudioJack.h
- BluetoothManager.h
- BluetoothDevice.h
CTStructures.h
我接到的这里。
新增BluetoothManager.framework到我的项目,使用普通方法
靶子>建立Phases-方式>链接二进制与库
Added BluetoothManager.framework to my project , using normal method
target->Build Phases->Link Binary with Libraries
.
在我的 ViewController.h
文件,我导入的头文件
In my ViewController.h
file, I imported the header file
#import "BluetoothManager.h"
这是它。只要我下面本教程,倒是这里的步骤,以防万一教程下去。
This is it. Simply I am following this tutorial, but added the steps here just in case the tutorial went down.
我还没有进入编码的一部分。当我试图编译上面给出的设置,我得到错误
I am yet to get into the coding part. When I tried to compile the above given setup, I am getting error
NSObject.h找不到文件
NSObject.h file not found
在 BluetoothManager.h
文件我添加为头的框架。
in the BluetoothManager.h
file I added as header to the framework.
任何想法?
好吧,我终于解决了这个问题。我只是删除那些
Well I finally solved this problem. I just removed those
#import "NSObject.h"
这是我在这个问题提到的3头文件,瞧!电话
calls from 3 header files which I mentioned in the question, and Voila!!