using Xamarin.Firebase, .NET MAUI app can't create IPA
I have gotten around a lot of issues related to long paths using Xamarin.Firebase in .NET MAUI but the latest on the AppData directory seems uncrackable.
When trying to deploy to the Local IOS Device I get the following error (I am using the Windows VS).
The logs say it can't find the file, but the file is there:
Directory of C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\Payload\HabitSphereShell.app\HabitSphereShell.content\Firebase.Core.resources\FBLPromises.xcframework\ios-arm64_x86_64-simulator\FBLPromises.framework\Headers
11/06/2022 12:25 AM 2,438 FBLPromise+All.h 1 File(s) 2,438 bytes 0 Dir(s) 1,803,123,757,056 bytes free
Here is the log:
, _iOSRuntimeIdentifier: ios-arm64, IsHotRestartBuild: True, IsHotRestartEnvironmentReady: True: 12/27/2023 17:25:57Z
DateTime=2023-12-27T17:25:57.4466555Z: 12/27/2023 17:25:57Z
Xamarin.Messaging.IDB.Local.GetMobileDeviceConfigurationMessageHandler Information: 0 : Apple Support - iTunes installed: 'True', Installation type: 'Store': 12/27/2023 17:25:59Z
DateTime=2023-12-27T17:25:59.8861804Z: 12/27/2023 17:25:59Z
Xamarin.iOS.Windows.Installer.ApplicationSession Information: 0 : Creating application ipa file: C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\HabitSphereShell.ipa: 12/27/2023 17:26:00Z
DateTime=2023-12-27T17:26:00.1050822Z: 12/27/2023 17:26:00Z
Xamarin.iOS.Windows.Installer.ApplicationSession Error: 0 : An error occurred while trying to create the .ipa file for HabitSphereShell. Details: Could not find a part of the path 'C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\Payload\HabitSphereShell.app\HabitSphereShell.content\Firebase.Core.resources\FBLPromises.xcframework\ios-arm64_x86_64-simulator\FBLPromises.framework\Headers\FBLPromise+All.h'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\Payload\HabitSphereShell.app\HabitSphereShell.content\Firebase.Core.resources\FBLPromises.xcframework\ios-arm64_x86_64-simulator\FBLPromises.framework\Headers\FBLPromise+All.h'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.Compression.ZipFileExtensions.DoCreateEntryFromFile(ZipArchive destination, String sourceFileName, String entryName, Nullable1 compressionLevel) at System.IO.Compression.ZipFile.DoCreateFromDirectory(String sourceDirectoryName, String destinationArchiveFileName, Nullable
1 compressionLevel, Boolean includeBaseDirectory, Encoding entryNameEncoding)
at Xamarin.iOS.Windows.Installer.ApplicationSession.CreateIpa(String appName, String appPath, String targetPath) in D:\a_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\Installer\ApplicationSession.cs:line 230: 12/27/2023 17:26:01Z
DateTime=2023-12-27T17:26:01.1109105Z: 12/27/2023 17:26:01Z
Xamarin.iOS.Windows.HotRestartClient Error: 0 : Deploy Error: Could not find a part of the path 'C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\Payload\HabitSphereShell.app\HabitSphereShell.content\Firebase.Core.resources\FBLPromises.xcframework\ios-arm64_x86_64-simulator\FBLPromises.framework\Headers\FBLPromise+All.h'.: 12/27/2023 17:26:01Z
DateTime=2023-12-27T17:26:01.1109105Z: 12/27/2023 17:26:01Z
Xamarin.Messaging.IDB.Local.DeployAppMessageHandler Error: 0 : An error occurred while trying to deploy the app 'HabitSphereShell.app'. Details: Could not find a part of the path 'C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\Payload\HabitSphereShell.app\HabitSphereShell.content\Firebase.Core.resources\FBLPromises.xcframework\ios-arm64_x86_64-simulator\FBLPromises.framework\Headers\FBLPromise+All.h'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\borea\AppData\Local\Temp\Xamarin\HotRestart\Signing\HabitSphereShell.app\out\Payload\HabitSphereShell.app\HabitSphereShell.content\Firebase.Core.resources\FBLPromises.xcframework\ios-arm64_x86_64-simulator\FBLPromises.framework\Headers\FBLPromise+All.h'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.Compression.ZipFileExtensions.DoCreateEntryFromFile(ZipArchive destination, String sourceFileName, String entryName, Nullable1 compressionLevel) at System.IO.Compression.ZipFile.DoCreateFromDirectory(String sourceDirectoryName, String destinationArchiveFileName, Nullable
1 compressionLevel, Boolean includeBaseDirectory, Encoding entryNameEncoding)
at Xamarin.iOS.Windows.Installer.ApplicationSession.CreateIpa(String appName, String appPath, String targetPath) in D:\a_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\Installer\ApplicationSession.cs:line 238
at Xamarin.iOS.Windows.Installer.ApplicationSession.Deploy(String appRootFolder, String appBundleId, String appName) in D:\a_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\Installer\ApplicationSession.cs:line 91
at Xamarin.iOS.Windows.HotRestartClient.Deploy(AppleDevice nativeDevice, String appBundleId, String appBundleName, Boolean& incremental) in D:\a_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\HotRestartClient.cs:line 250
at Xamarin.Messaging.IDB.Local.DeployAppMessageHandler.<ExecuteAsync>d__5.MoveNext() in D:\a_work\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\Handlers\DeployAppMessageHandler.cs:line 43: 12/27/2023 17:26:01Z
DateTime=2023-12-27T17:26:01.1109105Z: 12/27/2023 17:26:01Z