Faulty "GAppM-10.24.0" package causing different issues when built on Windows and Mac
I have noticed a few issues related to this package so I am creating this one to help anyone who may encounter it.
On Windows:
After solving the long path issue, you would still encounter #30
- Errors: "error : clang++ exited with code 1", "Could not find or use auto-linked framework 'GoogleAppMeasurement'"
- Solution:
- Download the file from this comment. Do NOT unzip yet.
- Copy the zip file to
C:\Users\<username>\AppData\Local\XamarinBuildDownloadCache(%localappdata%\XamarinBuildDownloadCache). If you unzip it and copy the content instead, you may encounter long-path error. - Unzip the file. I use 7zip so if your Windows unzip has issue, try using 7zip.
Your folder should look like this (I think the GoogleAppMeasurement-8.9.1 is a faulty download by Nuget):
On Mac:
You will encounter errors like xamarin/GoogleApisForiOSComponents#443 or TobiasBuchholz/Plugin.Firebase#281 when building. I have this issue even after successfully build on Windows pairing with this Mac.
Thanks to this comment, I found out my Mac's Nuget cache is also faulty even though no long-path issue happened, it only has a single folder with a strange version number and barely any content. This is what a good folder should look like, credit to @AdamEssenmacher :
- Errors: "Error: clang++ exited with code 1: ", "Undefined symbols for architecture arm64", "_APMAnalyticsConfiguration", referenced from: ...
- Solution:
- Download the file from this comment. You should not unzip it but you probably can.
- Copy the content over to
/Users/<username>/Library/Caches/XamarinBuildDownload(~/Library/Caches/XamarinBuildDownload). - Unzip it there.
@datvm I've been running into this issue on Mac as well and can't figure out how to fix it. I tried the proposed solution but that's not working either. Any ideas?
@Digifais Sorry I haven't compiled iOS apps recently. Maybe try deleting that folder and make sure it's correct? Maybe there is an update recently and the version is no longer 10.24.0? Maybe try deleting everything, then build one on Windows pairing with your Mac if you have a Windows PC around?
I think this should be fixed with the latest releases of the Firebase packages