2013-05-10 63 views
0

iOS中的NextPer在sdk初始化的第一行崩潰。 SDK版本:1.4.9iOS遊戲中的NextPer在第一行崩潰:NSNull長度

代碼:

[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 

我怎樣才能解決這個問題呢?缺少添加的任何框架?

+1

如果您確信一切都按照設置他們的指示,你應該問Nextpeer的支持。 – LearnCocos2D 2013-05-10 19:03:13

回答

0

好吧,這隻發生在模擬器,並在真正的iPhone工作正常。

現在一切都很好。但是幾天後nextpeer也在模擬器中工作,但現在不行。

0

你應該聯繫他們的支持團隊(支持在nextpeer.com)。 順便說一句,你添加了「其他鏈接器標誌」(-ObjC,-all_load)嗎?

從Nextpeer的文檔: 在你的項目配置,下鏈接 - >其它鏈接器標記添加下列標誌的所有配置:

-ObjC -all_load