使用 Xcode 中的 Low-Level API 或 PrivateFrameworks 控制 iPhone 服务

发布于 2024-08-07 17:51:01 字数 293 浏览 6 评论 0原文

我正在尝试使用私有框架或低级 API 组合一个简单的应用程序来控制 WiFi、蓝牙、3G 等电话服务。我可以在没有开发帐户的情况下构建设备并通过 SSH 将其连接到我的设备,并且我有 SDK 标头,但我正在寻求一些帮助来将这些私有框架添加到我的应用程序中。当我尝试遵循 Erica Sadun 的指示时,我收到了各种错误。我正在构建 3.0 的应用程序。

有谁知道如何将这些私有框架添加到您的项目中并正确导入并在 OS3.0 中使用它们?或者如果有人想帮我开发这个项目,请联系我!

编辑:查看我的解决方案

I am trying to make put together a simple application to control the phone services such as WiFi, Bluetooth, 3G, etc. using Private Frameworks 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 SDK headers, but I am looking or some help in adding these Private Frameworks 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 Private Frameworks 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!

EDIT: See my solution here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清音悠歌 2024-08-14 17:51:01

要使 PrivateFrameworks 在 3.x SDK 中正常工作,请确保 HEADERS 和 BINARIES 位于以下文件夹中:

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

例如 :

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

-并且-

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

现在您可以实现:

#import <BluetoothManager/BluetoothManager.h> 

-并且您可以在应用程序中控制蓝牙无线电。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文