【问题标题】:Nextpeer in iOS game crashed in first line: NSNull lengthiOS 游戏中的 Nextpeer 在第一行崩溃:NSNull 长度
【发布时间】:2013-05-10 18:44:54
【问题描述】:

iOS 中的 Nextpeer 在 sdk 初始化的第一行崩溃。 SDK版本:1.4.9

代码:

[Nextpeer initializeWithProductKey:@"HERE USED GAME KEY FROM NEXTPEER"
                           andSettings:settings
                          andDelegates:[NPDelegatesContainer containerWithNextpeerDelegate:self]];

崩溃日志:

[NSNull length]: unrecognized selector sent to instance 0x3760678
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x3760678'
*** First throw call stack:
(0x362f012 0x28cce7e 0x36ba4bd 0x361ebbc 0x361e94e 0x23bdefc 0x23bde42 0x23be195 0x126708 0x126368 0x28e06b0 0x16a602 0x28e06b0 0x17b203 0x28e06b0 0x230c765 0x35b2f3f 0x35b296f 0x35d5734 0x35d4f44 0x35d4e1b 0x30a67e3 0x30a6668 0x1810ffc 0x17ad6 0x2fe5)
libc++abi.dylib: terminate called throwing an exception

我该如何解决这个问题?缺少要添加的框架吗?

【问题讨论】:

  • 如果您确定一切都按照他们的说明进行设置,您应该咨询 Nextpeer 支持。

标签: iphone ios cocos2d-iphone nextpeer


【解决方案1】:

好的,这仅在模拟器中发生,在真实 iPhone 中可以正常工作。

现在一切都很好。但是几天前 nextpeer 也在模拟器中工作,但现在没有。

【讨论】:

    【解决方案2】:

    您应该联系他们的支持团队(在nextpeer.com支持)。 顺便说一句,你有没有加入 “其他连接标志”(-ObjC,-all_load)? P>

    来自 Nextpeer 的文档: 在您的项目配置中,在 Linking -> Other Linker Flags 下为所有配置添加以下标志:

    -ObjC -all_load

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-01
      • 1970-01-01
      • 2012-02-14
      相关资源
      最近更新 更多