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如何解决此问题?有没有什么框架没加进去?
发布于 2013-05-11 03:52:50
好吧,这只会在模拟器中发生,在真实的iPhone中工作得很好。
现在一切都好了。但几天前,nextpeer也在模拟器中工作,但不是现在。
发布于 2013-05-16 00:08:00
您应该联系他们的支持团队(nextpeer.com上的支持)。顺便说一句,你添加了“其他链接器标志”(-ObjC,-all_load)了吗?
来自Nextpeer的文档:在您的项目配置中,在Linking -> Other Linker Flags下为所有配置添加以下标志:
-ObjC -all_load
https://stackoverflow.com/questions/16488859
复制相似问题