The Xamarin Community Toolkit is a collection of Animations, Behaviors, Converters, and Effects for mobile development with Xamarin.Forms. It simplifies and demonstrates common developer tasks building iOS, Android, and UWP apps with Xamarin.Forms.
MIT License
1.58k
stars
471
forks
source link
[Bug] SafeAreaTypeConverter broken on iOS in Release mode - "Default constructor not found" #970
When running on an iOS device in Release, the following exception is thrown:
Default constructor not found for type Xamarin.CommunityToolkit.Helpers.SafeAreaTypeConverter
This doesn't happen on the device in Debug, only Release.
Steps to Reproduce
Build and deploy to iPad in Release
Navigate to screen with that uses SafeAreaTypeConverter
Exception occurs on screen load
Description
When running on an iOS device in Release, the following exception is thrown: Default constructor not found for type
Xamarin.CommunityToolkit.Helpers.SafeAreaTypeConverter
This doesn't happen on the device in Debug, only Release.Steps to Reproduce
Build and deploy to iPad in Release Navigate to screen with that uses
SafeAreaTypeConverter
Exception occurs on screen loadStacktrace
Show/Hide StackTrace info
``` Autofac.Core.Resolving.Middleware ActivatorErrorHandlingMiddleware.Execute (Autofac.Core.Resolving.Pipeline.ResolveRequestContext context, System.Action`1[T] next) Autofac.Core.Resolving.Pipeline ResolvePipelineBuilder+<>c__DisplayClass14_0.Expected Behavior
Actual Behavior
Basic Information
Show/Hide NuGet info
```Workaround
Setting this mtouch argument fixes the issue: --linkskip=Xamarin.CommunityToolkit
Here is the csproj of my XF shared project:
Show/Hide Shared csproj
```csproj of my iOS project
Show/Hide iOS csproj
```