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

Maui8.0 unable upload Crashlytics symbols on mac #644

Open
maonaoda opened this issue Jan 5, 2024 · 1 comment
Open

Maui8.0 unable upload Crashlytics symbols on mac #644

maonaoda opened this issue Jan 5, 2024 · 1 comment

Comments

@maonaoda
Copy link

maonaoda commented Jan 5, 2024

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。
@maonaoda
Copy link
Author

We can copy the target files to the desired path in our own build pipeline

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant