使用 Xcode 5.0 升级到 UrbanAirship 3.0.0,调用此代码时出现错误:
[UAirship takeOff:config];
错误是
+[NSJSONSerialization stringWithObject:]: unrecognized selector sent to class 0x3b2ca9fc
2013-09-19 15:02:31.981 [178:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSJSONSerialization stringWithObject:]: unrecognized selector sent to class 0x3b2ca9fc'
当在 中将键“inProduction”设置为“YES”时,这似乎没有出现AirshipConfig.plist
,因为调用 takeOff: 填充 UAirShip 的实例是有意义的。这似乎是由于类别NSJSONSerialization+UAAdditions
。
对这个有帮助吗?谢谢