MAUI Multi-Program Architecture - Plugin Firebase not installed

santosh sasupalli 0 Reputation points
2025-12-16T05:06:18.6166667+00:00

Hi,

I have developed MAUI multi program architecture, I have implemented crash analytics for this one i have installed plugin.firebase(3.0.0) in android but while I am trying in IOS project we got an below error.

Could not find a part of the path 'C:\NuGetPackages\adame.firebase.ios.core\11.0.0\lib\net6.0-ios16.1\Firebase.Core.resources\FirebaseCoreInternal.xcframework\ios-arm64_x86_64-simulator\FirebaseCoreInternal.framework\Modules\FirebaseCoreInternal.swiftmodule\arm64-apple-ios-simulator.private.swiftinterface'.

help me on this one.

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Adiba Khan 1,520 Reputation points Microsoft External Staff
    2025-12-16T10:42:08.65+00:00

    Thank you for reaching out . Based on the error details this is a known iOS build issue related to Firebase iOS native frameworks and Swift module generation, not an Android or MAUI architecture issue.

    Recommended Resolution Steps:

    Step 1: Ensure Correct Firebase iOS Packages

    make sure you have explicitly installed the iOS firebase packages, not only Android.
    if your iOS project(.csproj):

    <ItemGroup>
    <PackageReference Include="Plugin.Firebase.Crashlytics" Version="3.0.0"/>
    <PackageReference Include="Plugin.Firebase.Core" Version="3.0.0" />
    </ItemGroup>
    

    Installing only plugin.Firebase at shared level is not sufficient for iOS.

    Step 2: Clean Nuget Cache (Critical)

    Corrupted or partial NuGet restores cause this exact error:

    Run the following on both Windows and Mac build host:

    dotnet nuget locals all --clear
    

    Then delete:

    • bin
    • obj
    • ~/.nuget/packages/adame.firebase.ios.core

    Step 3: Update Xcode & Command Line tools

    Firebase iOS SDK requires a compatible Xcode version.

    On the Mac:

    xcode-select --install
    sudo xcode-select --switch /Applications/Xcode.app
    

    Ensure:

    • Xcode 14.1 or later
    • iOS SDK 16+

    Step 4: Rebuild for Device (Not Simulator)

    This issue often occurs only on Simulator builds due to missing slices.

    Test on a physical iOS device:

    dotnet build -t:Run -f net8.0-ios
    

    if it works on device, this confirms a simulator only limitation.

    Step 5: Disable Bitcode (if Enabled)

    In your iOS project:

    <PropertyGroup>
    <MtouchEnabledBitcode>false</MtouchEnabledBitcode>
    </PropertyGroup>
    

    Firebase does not support Bitcode.

    Step 6: Initialize Firebase Correctly in MAUI

    Ensure Firebase is initialized only once in MauiProgram.cs:

    builder
    	.UseFirebaseApp()
    	.UseFirebaseCrashlytics();
    

    Avoid duplicate initialization across multiple projects in multi-program architecture.

    Reference:

    Please let us know if you require any further assistance we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer".

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.