Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] Linker error "Link Framework SDKs Only" when only using converters from CommunityToolkit #793

@JoacimWall

Description

@JoacimWall

Description

Hi not sure if this is the right place to share this information. We have started to migrate functions in our project to instead use the community Toolkit and we started with converters.

When we build with the setting "Link SDKs Only", the app stops working. Attach is an sample project where we recreated the error on the physics Iphone in debug mode. We also get the error when we build on the App Center in release mode for both Android and Ios.

linkerError.zip

In debug we get this error.
Position 6:6. Type xct:InvertedBoolConverter not found in xmlns http://xamarin.com/schemas/2020/toolkit

Steps to Reproduce

To Generate error

  1. Download the sampel projekt and for IOS debug change to "Link SDKs only" for configuration:Debug Platform:Iphone
  2. Remove the mtouch argument: --linkskip=Xamarin.CommunityToolkitDebug and you will get the error
  3. Start Debug and you will get the error

Position 6:6. Type xct:InvertedBoolConverter not found in xmlns http://xamarin.com/schemas/2020/toolkit

If we add the mtouch argument:
--linkskip=Xamarin.CommunityToolkit
it's working.

I do not know much about linking and make code link safe or this is standard and the solution is that we need to add the
--linkskip=Xamarin.CommunityToolkit

Expected Behavior

Working no link error

Actual Behavior

Position 6:6. Type xct:InvertedBoolConverter not found in xmlns http://xamarin.com/schemas/2020/toolkit

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE:Visual Studio form Mac and AppCenter
  • Platform Target Frameworks:
    • iOS: 14.3
    • Android: Android SDK 30
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Workaround

Add --linkskip=Xamarin.CommunityToolkit

Reproduction imagery

Reproduction Link

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/LinkerbugSomething isn't working. Breaky break.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions