-
Notifications
You must be signed in to change notification settings - Fork 55
Attempting to JIT compile method #9
Comments
I think Xamarin has a config file where you can explicitly declare methods that their linker fails to anticipate needing. I suggest you follow up with Xamarin support/forums to find out how to do that. I haven't personally hit this problem myself with PCLCrypto but I know this is a classic problem to hit with Xamarin.iOS and I know they have some tricks for you to pull when you hit it to workaround it. |
Thanks Andrew - I’ll take a look. One more problem that I’m getting, running on iOS, is the error "System.NotImplementedException: Not implemented in reference assembly” when trying to do var provider = WinRTCrypto.SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithm.AesCbcPkcs7 Do you know what the issue is? Thanks,
|
See #10 |
That typically happens when you don't install the PclCrypto package into On Tue Feb 10 2015 at 9:16:23 AM pricimus notifications@github.com wrote:
|
@pricimus This issue does not seem to have anything to do with the linker since turning the linker off completely still produces the error if LLVM compiling is turned on. We have been using PCLCrypto for months successfully up to December 8th (our last push to TestFlight). Now all of a sudden the app crashes on an actual device only when it hits the I am using the latest version of PCLCrypto and the latest version of Xamarin Forms/iOS. Thanks. I also want to mention this Xamarin Forum thread where other people are experiencing the same issue: |
Given the regression you're seeing I suspect the fault is in the Xamarin aot compiler. I don't know how to workaround it. |
Thanks for the info. Will send them an email. |
Please relay anything you learn here for others' benefit. :) |
Will do, speaking with them now. |
Did you find any solution? |
Not yet. Emailed Xamarin Support and went back and forth sending them logs and a recreation of the issue. The tech was able to see the error from the demo project I sent but have not heard back from them since before the Xmas break. Will be attempting to contact them again on Monday and will update the thread when I hear something. |
@hvaughan3 Thank you for the information. Would be really great if you could keep me posted! |
you can CC yourself on the bug by logging into the bugzilla site and then on the bug page click Save Changes (since the "add me to the CC line" checkbox is checked by default once you're logged in). |
@hvaughan3 @AArnott Perfect, thank you! |
Thanks @AArnott. It looks like this bug has been fixed, though I have not tested it out yet. Not sure when I will be able to. Thanks for your help. |
@qqilihq |
Hi - I am using your PCLCrypto package to encrypt/decrypt strings in our Android/iOS app. I've defined two simple methods that use the classes and support from the package as follows:
Bu when I run in iOS, I see the following errors:
System.ExecutionEngineException: Attempting to JIT compile method 'CryptoHelper:Decrypt (string,string)' while running with --aot-only
Any ideas?
Thanks,
Ed
The text was updated successfully, but these errors were encountered: