私はミゲルがここにありMonoTouchでバインディングを持つ最新のGoogle Analyticsのピースを使用して苦労しています:https://github.com/migueldeicaza/monotouch-libs/tree/master/GoogleAnalyticsGoogleアナウンスのバインディングが更新されましたか?
私はインターフェイスに互換性がないかの方法でビットを変更したことを推測しているが、私は診断方法がわからない実行時に、私はこのエラーが発生します:System.InvalidCastException:ソースタイプから宛先タイプへキャストできません。 GoogleAnalytics.GANTracker.get_SharedTracker()[0x00000] in:0
2つのメソッドしか追加されていないようですので、これらを「api.cs」に追加しようとしましたが、状況に結び付いているようだ。
[Export ("setCustomVariableAtIndex:index:name:value:scope:error"),Internal]
bool _SetCustomVariableAtIndex(int index, string name, string value, int scope, IntPtr nsErrorPtr);
[Export ("setCustomVariableAtIndex:index:name:value:error"),Internal]
bool _SetCustomVariableAtIndex(int index, string name, string value, IntPtr nsErrorPtr);
他の誰もこれを克服し、NoThumbバージョンのGoogleアナリティクスをMonoTouchで使用していますか?
-ObjCを使用しないでください。代わりに、-force_load $ {ProjectDir} /Google/libGoogleAnalytics.aを使用してください。 –
これを反映するために私の答えが更新されました。上記のmtouchの引数を使用してコンパイルするプロジェクトがあります。 – jonathanpeppers