-
Notifications
You must be signed in to change notification settings - Fork 167
.NET 8 iOS app build error when using Xamarin.Firebase.iOS.Core NuGet: bitcode_strip: missing argument(s) #646
Comments
Issue moved from dotnet/maui#19946
From @drasticactions on Sunday, January 21, 2024 12:30:37 PM @rolfbjarne What do you think about this? I'm not sure there's any MAUI UI tooling that would influence this. |
Issue moved from dotnet/maui#19946
From @rolfbjarne on Monday, January 22, 2024 4:35:49 PM This seems to be an issue for https://github.com/xamarin/GoogleApisForiOSComponents. You might be able to work around it by redefining the <Target Name="_FirebaseStripBitcodeFromFrameworksOnWindows" /> |
@rolfbjarne Hi, who are we supposed to approach to request the Xamarin.Firebase.iOS.* nugets gets updated to newest versions, for instance I have tried different places, also asked @Redth for some info elsewhere. Not getting response anywhere from. I have myself tried to get But I am getting errors when building for physical device: |
This is where the action is happening: dotnet/maui#20359 |
Yes sorry - I found out after I asked you @rolfbjarne 👍 |
Issue moved from dotnet/maui#19946
From @awalker-dsg on Wednesday, January 17, 2024 4:02:37 PM
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: