I am trying to combine Firebase and Firebase Crashlytics into my .NET MAUI undertaking utilizing Visible Studio on macOS. It labored effective earlier than I up to date the NuGet packages. Now, the app fails on iOS (each simulator and actual system), exhibiting the next error:
/usr/native/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8022/targets/Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1:
ld: warning: Couldn't discover or use auto-linked library 'swiftCore'
ld: warning: Couldn't discover or use auto-linked library 'swiftCompatibility50'
ld: warning: Couldn't discover or use auto-linked library 'swiftCoreGraphics'
ld: warning: Couldn't discover or use auto-linked library 'swiftCoreImage'
ld: warning: Couldn't discover or use auto-linked library 'swiftFileProvider'
ld: warning: Couldn't discover or use auto-linked library 'swiftOSLog'
ld: warning: Couldn't discover or use auto-linked library 'swiftObjectiveC'
ld: warning: Couldn't discover or use auto-linked library 'swiftFoundation'
ld: warning: Couldn't discover or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Couldn't discover or use auto-linked library 'swiftDarwin'
ld: warning: Couldn't discover or use auto-linked library 'swiftCompatibility51'
ld: warning: Couldn't discover or use auto-linked library 'swiftQuartzCore'
ld: warning: Couldn't discover or use auto-linked library 'swiftUIKit'
ld: warning: Couldn't discover or use auto-linked library 'swif
What I attempted:
- Up to date Firebase and Firebase Crashlytics packages.
- Up to date .NET SDK.
- Modified Data.plist with FirebaseAppDelegateProxyEnabled and
UIBackgroundModes. - Added Swift libraries to .csproj file:
<ItemGroup>
<Reference Embody="libswiftCore.dylib" />
<Reference Embody="libswiftFoundation.dylib" />
<!-- Add different required libraries -->
</ItemGroup>
How can I resolve this concern and make sure the app runs on iOS?