Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 4504 [details]
Possible duplicate of #13193 ?
Reported on behalf of a user:
## Steps to reproduce
1. Run attached example on device.
2. Press the button.
Attempting to JIT compile method 'ServiceStack.ServiceClient.Web.AsyncServiceClient:SendAsync<TestiPhone.LoginResponse> (string,string,object)' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.
Please see my ServiceStack fork that contains the new async methods here:
A work-around to the solution as identified by Brendan is to add the following line in the TouchUpInside event handler:
new AsyncServiceClient().SendAsync<LoginResponse>("", "", default(LoginResponse));
However this is not a suitable work around for a client library. Perhaps there is something that can be done as LoginResponse (as per attached example) is a reference type and shouldn't be a worse case scenario for the AOT compiler.
Can you have a look at this, Zoltan?
This works for me with mono master, so its probably a dup of #13193.
Thanks for confirming Zoltan. I tried the latest Mono beta (3.2.1) and the issue still occurs there. Do you know when these fixes will be released?
This was fixed a long time ago.