xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

DirectoryNotFoundException" with Xamarin.Firebase.iOS.Crashlytics 8.10.0.3 on net7.0-ios Compilation #636

Closed takla21 closed 10 months ago

takla21 commented 10 months ago

Description

After updating to the latest version of Xamarin.Firebase.iOS.Crashlytics 8.10.0.3, I encountered a compilation error when trying to build my net7.0-ios project. The error message is as follows:

4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7054\targets\Xamarin.Shared.Sdk.targets(2014,3): error : MessagingRemoteException: An error occurred on client Build1647054 while executing a reply for topic xvs/build/16.4.7054/execute-task/{my_project_name}/dd14bb8002fGetFileSystemEntries
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7054\targets\Xamarin.Shared.Sdk.targets(2014,3): error : DirectoryNotFoundException: Could not find a part of the path '/Users/{mac_user_name}/Library/Caches/Xamarin/mtbs/builds/{my_project_name}/dd14bb858842a171263b2924953ce8f3babb2e93c6ab9c353b8ccd723dc14284/C:/n/xamarin.firebase.ios.core/8.10.0.3/lib/net6.0-ios15.4/Firebase.Core.resources'.
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7054\targets\Xamarin.Shared.Sdk.targets(2014,3): error :

This issue might be related to #555 , although I experienced it before encountering this new error message. I have attempted the following solutions without success:

Additional Information

On my Xamarin project, I'm currently using 8.10.0 and I did not encounter this issue. However, it's important to note that this specific version is only supported on Xamarin.

takla21 commented 10 months ago

I don't know if it can help, but I tried to go to the mtbs folder on my Mac and it seems that the xamarin.firebase.ios.core folder is indeed missing

image

Comparing to my main windows machine image

Soap-141 commented 10 months ago

On my side, trying the same thing, I'm getting the following.

1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7107\tools\msbuild\iOS\Xamarin.Shared.targets(137,3): error : C:/Users/thomas.labrecque/AppData/Local/XamarinBuildDownloadCache/GAppM-8.9.1/GoogleAppMeasurement-8.9.1/Frameworks/GoogleAppMeasurement.xcframework has an incorrect or unknown format and cannot be processed.

1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.7107\tools\msbuild\iOS\Xamarin.Shared.targets(137,3): error :

1>Done building project "CAAMobileApp.Mobile.csproj" -- FAILED.

takla21 commented 10 months ago

So apparently I had to update my visual studio from 17.6.1 to 17.7.7 which brought me the same problem as @Soap-141 which can be workaround with this solution https://github.com/xamarin/xamarin-macios/issues/19173#issuecomment-1765906924