Giter Site home page Giter Site logo

Comments (17)

AArnott avatar AArnott commented on August 20, 2024

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.

from pclcrypto.

pricimus avatar pricimus commented on August 20, 2024

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,
Ed

On 10 Feb 2015, at 17:12, Andrew Arnott [email protected] wrote:

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.


Reply to this email directly or view it on GitHub #9 (comment).

from pclcrypto.

AArnott avatar AArnott commented on August 20, 2024

See #10

from pclcrypto.

AArnott avatar AArnott commented on August 20, 2024

That typically happens when you don't install the PclCrypto package into
your iOS app project. If you do that, the problem should go away.

On Tue Feb 10 2015 at 9:16:23 AM pricimus [email protected] wrote:

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,
Ed

On 10 Feb 2015, at 17:12, Andrew Arnott [email protected]
wrote:

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.


Reply to this email directly or view it on GitHub <
https://github.com/AArnott/PCLCrypto/issues/9#issuecomment-73739956>.


Reply to this email directly or view it on GitHub
#9 (comment).

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

@pricimus
Did you ever fix this issue? Just now getting this same problem only when LLVM compiler is turned on.

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 GetBytes() method while LLVM is turned on.

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:
https://forums.xamarin.com/discussion/56990/attempting-to-jit-compile-method-while-running-with-aot-only

from pclcrypto.

AArnott avatar AArnott commented on August 20, 2024

Given the regression you're seeing I suspect the fault is in the Xamarin aot compiler. I don't know how to workaround it.

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

Thanks for the info. Will send them an email.

from pclcrypto.

AArnott avatar AArnott commented on August 20, 2024

Please relay anything you learn here for others' benefit. :)

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

Will do, speaking with them now.

from pclcrypto.

qqilihq avatar qqilihq commented on August 20, 2024

Did you find any solution?

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

@qqilihq

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.

from pclcrypto.

qqilihq avatar qqilihq commented on August 20, 2024

@hvaughan3 Thank you for the information. Would be really great if you could keep me posted!

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

@qqilihq
A public bug report has been filed by Xamarin Support here.

from pclcrypto.

AArnott avatar AArnott commented on August 20, 2024

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).

from pclcrypto.

qqilihq avatar qqilihq commented on August 20, 2024

@hvaughan3 @AArnott Perfect, thank you!

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

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.

from pclcrypto.

hvaughan3 avatar hvaughan3 commented on August 20, 2024

@qqilihq
Just wanted to come back to comment about the latest statement in the bug report. Spoke to Xamarin Support again and they are still looking into the issue. They are not sure when it will be fixed but that a solution currently might be to downgrade to version 1.0.2. I have not personally tried this yet though.

from pclcrypto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.