xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

Using Firebase.Core.Options with different file name doesn't work #498

Open MattePozzy opened 3 years ago

MattePozzy commented 3 years ago

Hi, in our XF application we have two file GoogleService-Info.plist and we use this code to load the specific one, but in the console we see that it try to load always the file GoogleService-Info.plist that doesn't exists, so on the web page the message to load the dsym is always present.

        [...]
       string plistName = utility.GetFireBaseConfigFile(AppInfo.PackageName, DevicePlatform.iOS); // for example MyApp-GoogleService-Info
       string pathPlist = NSBundle.MainBundle.PathForResource(plistName, "plist");

        Firebase.Core.Options options = new Firebase.Core.Options(pathPlist);
        Firebase.Core.App.Configure(options: options);
        Firebase.Crashlytics.Crashlytics.SharedInstance.SendUnsentReports();

inside the output log:

 warning MSB3073: The command "'/Users/pozzy/Library/Caches/XamarinBuildDownload/FCrshlytcs-4.6.2/upload-symbols.sh' -gsp '/Users/pozzy/Projects/MyApp/MyApp.iOS/GoogleService-Info.plist' -p ios '/Users/pozzy/Projects/Uno/Due/MyApp/MyApp.iOS/bin/iPhone/Debug/device-builds/ipad13.4-14.7.1/SgatOffline.iOS.app.dSYM'" exited with code 13.
/Users/pozzy/.nuget/packages/xamarin.firebase.ios.crashlytics/4.6.2/buildTransitive/Xamarin.Firebase.iOS.Crashlytics.targets(44,3): warning MSB4181: The "Exec" task returned false but did not log an error.