.NET 8 iOS app build error when using Xamarin.Firebase.iOS.Core NuGet: bitcode_strip: missing argument(s) #19946
Labels
area-single-project
Splash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizer
platform/iOS 🍎
potential-regression
This issue described a possible regression on a currently supported version., verification pending
t/bug
Something isn't working
Description
After updating our app (which targets Android and iOS) from net7.0 to net8.0, we started getting the following error when building for iOS:
(The full text of the error message can be found at the end of this ticket)
This error was reported as a Xamarin GoogleApisForiOSComponents issue on 29 Oct 2023. However, it was closed in Jan 2024 by the issue's author with the explanation that this sample repo helped solve the issue. However, we tried changes suggested there and it did not fix the issue for us.
Steps to Reproduce
The MAUI test project found at the sample repo link below was created using the VS wizard. It was modified so it only targets iOS, and a reference to Xamarin.Firebase.iOS.Core v8.10.0.3 was added.
Using that sample code, here are the steps to reproduce the issue.
Link to public reproduction project repository
https://github.com/awalker_dsg/MauiApp_StripBitcodeIssue
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
This is a iOS app build error, so it's not related to a specific version of iOS.
Did you find any workaround?
Ultimately the error seems to be caused by changes made to address MAUI issue 12863. The error can be traced to this block of code in the Xamarin.Firebase.iOS.Core v8.10.0.3 NuGet's
\buildTransitive\Xamarin.Firebase.iOS.Core.targets
file:We were able to work-around the issue by modifying the Target statement as shown below to skip this target when the target framework is net8:
After this change is made, the app builds successfully.
Of course, making local changes to NuGets is less than ideal, so this change (or something similar) needs to be made in the public Xamarin.Firebase.iOS.Core NuGet.
Relevant log output
The text was updated successfully, but these errors were encountered: