Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.IOS. Code analysis - CA2123

I have Microsoft Extended Correctness Rules rule set for my Xamarin.IOS project. When I analysed I had many troubles:

  1. CA2123: Add the following security attribute to BooleanNegationConverter.Convert(object, Type, object, CultureInfo) in order to match a LinkDemand on base method IMvxValueConverter.Convert(object, Type, object, CultureInfo): SecurityCriticalAttribute.

Why I need set security attributes? For what? Or do I must do it?

  1. CA2134: Transparent or safe critical method .get() is overriding critical method [simple self interface].get() in violation of method override rules. .get() must become security critical in order to override a critical virtual method or implement a critical interface method.

The same... How I can fix it for IOS project? Why I have this problem.

Thanks!

like image 446
Mykyta Bondarenko Avatar asked Apr 23 '16 07:04

Mykyta Bondarenko


People also ask

How do I install Xamarin iOS on a Mac?

The preferred method for installing Xamarin.iOS and Mac is to use the Visual Studio installers ( Windows, Mac ). The team also strongly recommends using the latest Xamarin SDK and Xcode whenever possible. However, we provide links to older Xamarin.iOS and Mac packages for macOS downgrades and build machine configuration.

Can I use Xcode to debug my Xamarin app?

There might be scenarios where you want to use Xcode to debug some parts of your Xamarin.iOS application. While you will not be able to debug the .NET code in it, you will still be able to debug native code and use some of the native visualizers in Xcode.

What is the Xamarin iOS/Xamarin SDK repository?

This repository is where we do development for the Xamarin.iOS and Xamarin.Mac SDKs. There are a few ways that you can contribute, for example: If you are interested in fixing issues and contributing directly to the code base, please see the document How to Contribute, which covers the following:

How to implement barcode and QR code scanning in Xamarin forms?

In the following paragraphs, we will show how to implement the barcode and QR code scanning feature in Xamarin.Forms. The steps include installing Dynamsoft Barcode Reader SDK, reading barcode and QR code from image file and live video stream, and drawing the results on overlay.


1 Answers

The Code Access Security is only partially and experimentally implemented in Mono.

Code Access Security (CAS) is a new experimental (i.e. unsupported) feature in the Mono 1.2 release. It is complete enough to play with it but should not be used in production (incomplete and unaudited). The security manager is off by default.

These Warnings are important if the runtime uses this feature. It is not used in iOS and Android. So you can ignore it.

like image 151
Sven-Michael Stübe Avatar answered Sep 22 '22 12:09

Sven-Michael Stübe