Unity3d IOS アプリケーションに Keen.IO 分析を実装しようとしています。Keen.IO のドキュメントを読み、ライブラリを Unity3D によって生成された xcode プロジェクトに統合し、ビルドに成功しました。
ただし、AppController メソッドから単純で直接的な「AddEvent」呼び出しを実行しようとすると、この例外が発生します。
2014-05-22 18:04:20.591 Adding event to collection: testEvent1
2014-05-22 18:04:20.594 [__NSDictionaryM JSONDataWithOptions:serializeUnsupportedClassesUsingDelegate:selector:error:]: unrecognized selector sent to instance 0x34737e0
2014-05-22 18:04:20.596 Exception: -[__NSDictionaryM JSONDataWithOptions:serializeUnsupportedClassesUsingDelegate:selector:error:]: unrecognized selector sent to instance 0x34737e0
私は KeenClient を applicationDidBecomeActive() メソッド (正常に動作します) に登録し、単純な NSDictionary を使用して applicationDidEnterBackground() メソッドで AddEvent() を呼び出しています:
NSDictionary *event = [NSDictionary dictionaryWithObjectsAndKeys:@"first view", @"view_name", @"going to", @"action", nil];
[[KeenClient sharedClient] addEvent:event toEventCollection:@"testEvent1" error:nil];
Keen.IO ライブラリ コードがこの例外を発生させているようですが、Unity で生成された xcode プロジェクトと関係があるのではないかと疑っています。
よく知っている人からの助けをいただければ幸いです。