Type input:CheckBox not found in xmlns clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit on iOS
See original GitHub issueGetting strange run-time exceptions on iOS as follows:
Xamarin.Forms.Xaml.XamlParseException: Position 98:34. Type input:CheckBox not found in xmlns clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit
Xaml code below in shared .Net 2.0 library works fine when running on Android:
xmlns:input="clr-namespace:Plugin.InputKit.Shared.Controls;assembly=Plugin.InputKit"
<DataTemplate> <ViewCell> <Grid Margin="0,0,0,12"> <input:CheckBox Text="{Binding Name}" Type="Check" IsChecked="{Binding IsChecked}" BoxBackgroundColor="{StaticResource bgCheckBoxColor}" Color="{StaticResource fgLabelColor}" TextColor="{StaticResource fgLabelColor}"/> </Grid> </ViewCell> </DataTemplate>
Nuget Xamarin.Forms.InputKit package installed across all projects in solution including on the Xamarin.iOS project.
My suspicion is that the type might be getting linked out by the compiler?
Expected behavior No run-time exception.
Smartphone:
- Device: iPhone6
- OS: iOS 12.1.3
Additional context Xamarin.Forms.InputKit v2.3.8 and Xamarin.Forms 3.3.0.912540 Xamarin.iOS - 12.2.1.12
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)

Top Related StackOverflow Question
@SandipAhluwalia You are Right. I’ve just tried Xamarin Forms 3.2.x project. Linker doesn’t get ios library. XF 3.4x.x+ versions works fine but lower versions you’ll need Init like that until ı’ve update and add Init method:
@SandipAhluwalia Does problem continue at v3.0.0 with new Init() methods. (after following new set-up)