xamarin / GoogleApisForiOSComponents

MIT License
225 stars 156 forks source link

Maui8.0 unable upload Crashlytics symbols on mac #644

Open maonaoda opened 5 months ago

maonaoda commented 5 months ago

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'

https://github.com/xamarin/GoogleApisForiOSComponents/blob/c7ae591364f73a4e61d47d765a1e537bb509422e/source/Firebase/Crashlytics/Crashlytics.targets#L41-L42


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 commented 2 months ago

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