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.
The "framework search paths" is:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/PrivateFrameworks
Here is a picture of my xcode folder structure:
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>
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.