views:

668

answers:

1

I am trying to make put together a simple application to control the phone services such as WiFi, Bluetooth, 3G, etc. using PrivateFrameworks or low-level API's. I am able to build the device and SSH it to my device without a dev account, and I have the include-2.1.SDK headers, but I am looking or some help in adding these PrivateFrameworks to my app. I am receiving all kinds of errors when I try to follow the Erica Sadun directions. I am building the app for 3.0.

Does anyone know how to add these PrivateFrameworks to your project and correctly import and use them for OS3.0? Or if anyone wants to help me develop this project, please contact me!

+1  A: 

To get PrivateFrameworks to work correctly in 3.x SDK, make sure that HEADERS and BINARIES are in the following folders:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks

for example:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework/Headers/BluetoothManager.h

-and-

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager <-- binary

NOW your able to implement:

#import <BluetoothManager/BluetoothManager.h>

-and you can control bluetooth radio in your app.

AWright4911