This repository has been archived by the owner on May 1, 2024. It is now read-only.
This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] XCT doesn't build in release mode for iOS - MediaSource/MediaCapturedEventArgs linking fails #367
Labels
bug
Something isn't working. Breaky break.
s/unverified
This issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.
Description
Xamarin.Forms 5-pre1 is announcing XCT as an upgrade path for certain features that were present in Xamarin.Forms 4. Unfortunately the following error happens when building release builds for iOS:
/Users/myname/Projects/myproject/MyApp.iOS/MTOUCH: Error MT2101: Can't resolve the reference 'Xamarin.Forms.MediaSource', referenced from the method 'System.Void Xamarin.CommunityToolkit.UI.Views.MediaCapturedEventArgs::.ctor(System.String,System.Byte[])' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. (MT2101) (MyApp.iOS)
I reported this issue at xamarin/Xamarin.Forms#12224 (comment) and was told that there's a pending pull request to fix this in XCT.
When will this pull request be merged and a new package released? As this blocks proper release builds until it is in I'd urge to ship one soon, as it also prevents proper testing of Xamarin.Forms 5 preview releases.
PS. I'm not using media source at all so it's not related to my code, should happen with a vanilla project.
PS 2. There is also an XCT AOT error that I think is related to this, which I reported here: #368.
Thanks.
Steps to Reproduce
Expected Behavior
iOS release builds should finish successfully.
Actual Behavior
iOS release builds fail with the above error.
Basic Information
Workaround
Project Options -> iOS Build -> Set 'Linker behaviour' to 'Don't link'.
The text was updated successfully, but these errors were encountered: