openfeint 2.12.2 的问题 - 集成问题

发布于 2024-12-05 11:54:05 字数 256 浏览 3 评论 0原文

我正在尝试将 OpenFeint 2.12.2 集成到我的游戏中,所有内容都会编译和链接,但在运行时它会在函数 [OpenFeint initializeWithProductKey:(...)] 中崩溃,行: +[OpenFeint共享实例]:发送到类的无法识别的选择器

我正在使用xcode 3.2.5和OF的框架版本;试图清理、重建、重新编译整个东西,但没有任何效果。我正在 iPad 4.2、iPhone 4.1 和模拟器上测试它。

有什么想法吗? 干杯!

I am trying to integrate OpenFeint 2.12.2 into my game, everything compiles and links, but while runtime it crashes in function [OpenFeint initializeWithProductKey:(...)], at line:
+[OpenFeint sharedInstance]: unrecognized selector sent to class

I am using xcode 3.2.5 and framework version of OF; tried to clean, rebuild, RECOMPILE whole thing, nothing works. I am testing it on iPad 4.2, iPhone 4.1 and simulator.

Any ideas?
Cheers!

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

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

发布评论

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

评论(2

山色无中 2024-12-12 11:54:05

我正在使用 openfeint 2.12.5 并完成了必要的链接器设置。它在模拟器中运行良好,但在设备上崩溃。我陷入了困境。

I am using openfeint 2.12.5 and done necessary linker setting.It runs fine in simulator but crashes on device.I am stuck in this.

小傻瓜 2024-12-12 11:54:05

请阅读 OpenFeint 附带的文档 - 您必须添加必要的链接器设置,以确保链接器不会删除 Objective-C 必需的 Objective-C 例程。来自文档

在(您的项目)->构建设置->链接中,将值 -all_load 添加到其他链接器标志。如果您在项目级别进行更改,请确保您的设置不会在目标级别被覆盖:在目标级别完成的任何操作均优先。

和:

将值 -ObjC 添加到“链接”->“其他链接器标志”下的所有配置

其中还有更多内容,因此请务必阅读!

另外:据我所知,最新版本是 2.12.2:链接旧版本(2.1.12)的动机是什么?旧版本也可能是您遇到一些问题的根源。

Please read the documentation that comes with OpenFeint - there are necessary linker settings that you have to add to make sure the linker doesn't strip out Objective-C necessary Objective-C routines. From the documentation:

In (your project)->Build Settings->Linking, add the value -all_load to Other Linker Flags. If you make the changes at the PROJECT level, make sure your settings aren’t overridden at the TARGET level: Anything done at the TARGET level takes precedence.

and:

Add the value -ObjC to all configurations under Linking->Other Linker Flags

There's a lot more in there, so please be sure to read up!

Also: the latest version is 2.12.2 as far as I can tell: what's the motivation behind linking in an older version (2.1.12)? The older version may be the source of some of your troubles as well.

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