Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

Maui8.0 unable upload Crashlytics symbols on mac #644

@maonaoda

Description

@maonaoda

I use ↓,to bundle GoogleService-Info.plist under Platforms\iOS,
But when doing this,
dotnet publish -f net8.0-ios -c Dev -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64
then Xamarin.Firebase.iOS.Crashlytics.targets`s _FirebaseCrashlyticsUploadDSymToFirebaseOnMac will shows that the path of GoogleService-Info.plist was not correctly.

    <BundleResource Include="Platforms\iOS\GoogleService-Info.Dev.plist" Condition=" '$(Configuration)' == 'Dev' ">
      <Link>GoogleService-Info.plist</Link>
    </BundleResource>

my temporary workaround was ↓, any fix required for the maui project?

set '$(MSBuildProjectDirectory)\GoogleService-Info.plist' to '$(MSBuildProjectDirectory)\Platforms\iOS\GoogleService-Info.plist'

<Exec Command="'$(_FirebaseCrashlyticsSDKBaseFolder)$(_FirebaseScriptName)' -gsp '$(MSBuildProjectDirectory)\GoogleService-Info.plist' -p ios '$(MSBuildProjectDirectory)\$(DeviceSpecificOutputPath)$(AssemblyName).app.dSYM'"
ContinueOnError="$(_FirebaseCrashlyticsUploadSymbolsContinueOnError)" />


Error:

  error: Unable to read Google Service plist at path /XXX/GoogleService-Info.plist
/Users/username/.nuget/packages/xamarin.firebase.ios.crashlytics/8.10.0.3/buildTransitive/Xamarin.Firebase.iOS.Crashlytics.targets(41,5): warning MSB3073: 命令“'/Users/username/Library/Caches/XamarinBuildDownload/FCrshlytcs-8.9.1/upload-symbols.sh' -gsp '/XXX/GoogleService-Info.plist' -p ios '/XXX/bin/Dev/net8.0-ios/ios-arm64/AssemblyName.app.dSYM'”已退出,代码为 13。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions