iOS 6中 - BluetoothManager框架 - " NSObject的"未找到错误 [英] iOS 6 - BluetoothManager framework - "NSObject" not found error

查看:260
本文介绍了iOS 6中 - BluetoothManager框架 - " NSObject的"未找到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是<一个副本href=\"http://stackoverflow.com/questions/14069892/bluetoothmanager-framework-nsobject-error?lq=1\">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.


  1. 在bluetoothManager框架命名添加页眉SDK中的文件夹
    文件夹

  1. 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


    1. BluetoothAudioJack.h

    2. BluetoothManager.h

    3. BluetoothDevice.h

    4. CTStructures.h

    1. BluetoothAudioJack.h
    2. BluetoothManager.h
    3. BluetoothDevice.h
    4. CTStructures.h

    我接到的这里

    新增BluetoothManager.framework到我的项目,使用普通方法
      靶子&GT;建立Phases-方式&gt;链接二进制与库

  • 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"
    


  • 这是它。只要我下面<一个href=\"http://www.pocketmagic.net/2012/07/bluetooth-and-ios-use-bluetooth-in-your-iphone-apps/#.UQtGe1p25Yi\"相对=nofollow>本教程,倒是这里的步骤,以防万一教程下去。

    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!!

    这篇关于iOS 6中 - BluetoothManager框架 - &QUOT; NSObject的&QUOT;未找到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆