JimmyPun610 / BarcodeScanner.Mobile

Barcode Scanner using GoogleVision API for Xamarin Form, Maui
MIT License
351 stars 102 forks source link

iOS build task hangs forever in the XamarinDownloadArchives task #251

Open ManuLin opened 2 months ago

ManuLin commented 2 months ago

We are currently facing issues when attempting to deploy our application with the most recent version of the .NET MAUI barcode scanning library to iOS devices. While deployement and debugging works smoothly on Android, the iOS build hangs forever when attempting to extract the package "GAppM-10.24.0" via the XamarinDownloadArchives task. Anyone facing a similar issue?

I've figured out that downgrading the Xamarin.Build.Download package to version 0.8.0 (or even lower) might help, this is however not really an option, as the AdamE.MLKit.iOS.BarcodeScanning package requires at least version 0.11.0 or higher. Somehow I seem stuck at this point.

kano-hiroyuki commented 1 month ago

I am facing the same problem. However, the members of the same team are not experiencing any problems and I am wondering how to deal with them...

When I build directly on macOS (Visual Studio 2022 on Mac) instead of Windows, no problem occurred.

Here is the build output of the part that does not proceed when building on Windows (Visual Studio 2022 Community) (I am using a Japanese environment, so it may be hard to see because of the mixed Japanese).

1>ファイル "C:\Users\wukan\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.targets" 内のターゲット "_XamarinBuildDownloadCore":
1>  "XamarinDownloadArchives" タスクをアセンブリ "C:\Users\wukan\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.dll" から使用しています。
1>  タスク "XamarinDownloadArchives"
1>    タスク パラメーター:IsAndroid=False
1>    タスク パラメーター:CacheDirectory=C:\Users\wukan\AppData\Local\XamarinBuildDownloadCache\
1>    タスク パラメーター:
1>        Archives=
1>            GAppM-10.24.0
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/firebase/ios/analytics/cc4d75392af34c62/GoogleAppMeasurement-10.24.0.tar.gz
1>            MLKCommon-11.0.0
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/85bda285a1954024/MLKitCommon-11.0.0.tar.gz
1>            MLKVision-7.0.0
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/a82625c72bbef814/MLKitVision-7.0.0.tar.gz
1>            MLImage-1.0.0-beta5
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/10ddbf30d0514f6d/MLImage-1.0.0-beta5.tar.gz
1>            MLKImgLblCommon-7.0.0
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/32805ca33739d2ef/MLKitImageLabelingCommon-7.0.0.tar.gz
1>            MLKObjCommon-7.0.0
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/113871a79ef25131/MLKitObjectDetectionCommon-7.0.0.tar.gz
1>            MLKitBarcodeScanning-5.0.0
1>                    Kind=Tgz
1>                    Url=https://dl.google.com/dl/cpdc/a0171fe6f0004baf/MLKitBarcodeScanning-5.0.0.tar.gz
1>    タスク パラメーター:VsInstallRoot=C:\Program Files\Microsoft Visual Studio\2022\Community
1>    タスク パラメーター:AllowUnsecureUrls=False
1>    タスク パラメーター:DestinationBase=C:\Users\wukan\AppData\Local\XamarinBuildDownloadCache\
1>    TaskRun (Xamarin.Build.Download.XamarinDownloadArchives) 中にアセンブリが読み込まれました: Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (場所: C:\Users\wukan\.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Microsoft.Win32.Registry.dll、MVID: f165d2aa-905d-4dd4-8e4a-317d747f8224、AppDomain: [Default])
1>    Extracting C:\Users\wukan\AppData\Local\XamarinBuildDownloadCache\GAppM-10.24.0.tgz to C:\Users\wukan\AppData\Local\XamarinBuildDownloadCache\GAppM-10.24.0
juli175h commented 2 weeks ago

Same problem, can't build to ios with BarcodeScanner.Mobile :(

maonaoda commented 1 week ago

same!

maonaoda commented 1 week ago

see https://github.com/dotnet/android-libraries/issues/1047

maonaoda commented 1 week ago

Hey guys, you can wait for the PR been approved. If really needed, I can provide the modified package.