金维 Xamarin iOS
Kinvey Xamarin iOS
我正在为 Xamarin android 和 iOS 使用 Kinvey 数据库。
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 ();
这可能是由链接器问题引起的。
能否在Solution
Window中右击你的项目,->'Options'->Build
下,点击iOS Build
你应该看到Linker Behavior
,你能确认这个设置为Don't Link
吗?
我正在为 Xamarin android 和 iOS 使用 Kinvey 数据库。
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 ();
这可能是由链接器问题引起的。
能否在Solution
Window中右击你的项目,->'Options'->Build
下,点击iOS Build
你应该看到Linker Behavior
,你能确认这个设置为Don't Link
吗?