1

Xamarin android と iOS に Kinvey db を使用しています。Androidでは問題なく動作しています。iOS シミュレータでは正常に動作していますが、デバイスでは動作していません。それは私にエラーを与える Unable to find a constructor to use for type KinveyXamarin.KinveyAuthResponse. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'username', line 1, position 12.

以下のコードを試しています

private Client myClient;
myClient = new Client.Builder ("kid_PeYFqjBcBJ","3fee066a01784e2ab32a255151ff761b").build ();
        await myClient.User ().LoginAsync ();
4

1 に答える 1

1

これは、リンカーの問題が原因である可能性があります。

ウィンドウでプロジェクトを右クリックできますかSolution、->「オプション」-> の下Buildで、クリックしますiOS Build

Linker Behaviorが表示されます。これが に設定されていることを確認できますDon't Linkか?

于 2015-09-03T18:51:40.320 に答える