I want to include BluetoothManager framework in swift or objective-c, having problems

1.2k views Asked by At

I am having problems including frameworks in my project.

I have downloaded the private APIs from https://github.com/nst/iOS-Runtime-Headers/tree/master/PrivateFrameworks This gives me header files to use with the framework already in xcode as I understand it. I have added the header files to the framework folder in xcode for bluetoothmanager. I have also included this framework in xcode. paths for adding framework

The "framework search paths" is:

/Applications/Xcode.app/Contents/Develop­er/Platforms/iPhoneOS.platform/Developer­/SDKs/iPhoneOS.sdk/System/Library/Privat­eFrameworks

Here is a picture of my xcode folder structure: This is in project root as you can see

When I try to include the header file i get the error "BluetoothManager/BluetoothManager.h file not found".

Here is the code for that:

#include <BluetoothManager/BluetoothManager.h>
1

There are 1 answers

4
eliasRuizHz On BEST ANSWER

Objective-C has this in common with C/C++; the quoted form is for "local" includes of files (you need to specify the relative path from the current file, e.g. #include "headers/my_header.h"), while the angle-bracket form is for "global" includes -- those found somewhere on the include path passed to the compiler (e.g. #include <math.h>).

So to have your own headers use < > not " " you need to pass either the relative or the absolute path for your header directory to the compiler.