You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error XARLP7000: Xamarin.Tools.Zip.ZipException: Renaming temporary file failed: No such file or directory #9321
On macOS, building an android app may fail with the following:
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/34.0.138/tools/Xamarin.Android.EmbeddedResource.targets(39,5): error XARLP7000: Xamarin.Tools.Zip.ZipException: Renaming temporary file failed: No such file or directory
at Xamarin.Tools.Zip.ZipArchive.Close() in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/ZipArchive.cs:line 989
at Xamarin.Android.Tasks.ZipArchiveEx.Dispose(Boolean disposing)
at Xamarin.Android.Tasks.ZipArchiveEx.Dispose()
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.<>c__DisplayClass75_0.<CreateResourceArchive>b__0(String f)
at Microsoft.Android.Build.Tasks.Files.ArchiveZipUpdate(String target, Action`1 archiver) in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/Files.cs:line 92
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.CreateResourceArchive(String resDir, String outputFile)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(IDictionary`2 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments, ICollection`1 proguardConfigFiles)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.RunTask()
at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/runner/work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 25 [/Users/stephenhauck/Documents/GitHub/Uno.Samples/reference/SimpleCalc/CSharp-MVUX/SimpleCalculator/SimpleCalculator.csproj]
We could maybe do something for this case, but other .zip files could hit the same issue? It could also happen when writing an .apk. /cc @dellis1972@grendello
Activity
jonathanpeppers commentedon Sep 24, 2024
Hmm,
<ResolveLibraryProjectImports/>should be opening a.zipfile in "readonly" mode. Should it use a temp file at all for that case?Then I saw:
android/src/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs
Lines 455 to 463 in 8bb3c8e
Added for special chars in:
We could maybe do something for this case, but other
.zipfiles could hit the same issue? It could also happen when writing an.apk. /cc @dellis1972 @grendellodellis1972 commentedon Sep 24, 2024
I've seen this when the OS runs out of file handles. I had to change the
ulimitto be unlimited to work around it.