Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment error when debugging on iOS Local Device: "Could not find a part of the path..." #15480

Closed
gdurandrexel opened this issue Jun 6, 2023 · 2 comments
Labels
platform/iOS 🍎 s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working

Comments

@gdurandrexel
Copy link

gdurandrexel commented Jun 6, 2023

Description

When starting a debugging session from VS 17.6.2 on Windows 11 to an iOS Local Device, the error below occurs during deployment.
The files actually exist. Probably a case of "path too long". Installing the Firebase nuget package via VS also fails with the same error (for files in .nuget this time), but installing with dotnet works fine.

Note that it worked 2 months ago.
I stay current on VS versions, and there were new versions in the meantime, so that may be it.

    DateTime=2023-06-06T14:51:44.7811485Z: 06/06/2023 14:51:44Z
Xamarin.VisualStudio.IOS.PropertyProviders.BuildPropertiesProvider Information: 0 : !Build properties for C:\Dev\internal\EnergeasyConnect\EnergeasyConnect.Mobile.Pro\EnergeasyConnect.Mobile.Pro\EnergeasyConnect.Mobile.Pro.csproj: VisualStudioProcessId: 24792, SolutionPath: C:\Dev\internal\EnergeasyConnect\EnergeasyConnect.Mobile.Pro\EnergeasyConnect.Mobile.Pro.sln, SolutionName: EnergeasyConnect.Mobile.Pro, RunConfiguration: Default, ArchiveOnBuild: False, ArchivePath: , IsAppDistribution: False, DeviceSpecificBuild: true, TargetiOSDevice: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>device</key>
	<dict>
		<key>architecture</key>
		<string>ARMv6, ARMv7, ARMv7s, ARM64</string>
		<key>model</key>
		<string>iPhone11,2</string>
		<key>os-version</key>
		<string>16.5</string>
		<key>os</key>
		<string>iOS</string>
	</dict>
</dict>
</plist>
, _iOSRuntimeIdentifier: ios-arm64, IsHotRestartBuild: True, IsHotRestartEnvironmentReady: True: 06/06/2023 14:51:44Z
    DateTime=2023-06-06T14:51:44.7811485Z: 06/06/2023 14:51:44Z
Xamarin.Messaging.IDB.Local.GetMobileDeviceConfigurationMessageHandler Information: 0 : Apple Support - iTunes installed: 'True', Installation type: 'Msi': 06/06/2023 14:51:53Z
    DateTime=2023-06-06T14:51:53.7482185Z: 06/06/2023 14:51:53Z
Xamarin.iOS.Windows.Installer.ApplicationSession Information: 0 : Creating application ipa file: C:\Users\gdurand\AppData\Local\Temp\Xamarin\HotRestart\Signing\EnergeasyConnect.Mobile.Pro.app\out\EnergeasyConnect.Mobile.Pro.ipa: 06/06/2023 14:51:54Z
    DateTime=2023-06-06T14:51:54.1879329Z: 06/06/2023 14:51:54Z
Xamarin.iOS.Windows.Installer.ApplicationSession Error: 0 : An error occurred while trying to create the .ipa file for EnergeasyConnect.Mobile.Pro. Details: Could not find a part of the path 'C:\Users\gdurand\AppData\Local\Temp\Xamarin\HotRestart\Signing\EnergeasyConnect.Mobile.Pro.app\out\Payload\EnergeasyConnect.Mobile.Pro.app\EnergeasyConnect.Mobile.Pro.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\gdurand\AppData\Local\Temp\Xamarin\HotRestart\Signing\EnergeasyConnect.Mobile.Pro.app\out\Payload\EnergeasyConnect.Mobile.Pro.app\EnergeasyConnect.Mobile.Pro.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.DirectoryInfo.EnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
   at System.IO.Compression.ZipFile.IsDirEmpty(DirectoryInfo possiblyEmptyDir)
   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: 06/06/2023 14:51:55Z
    DateTime=2023-06-06T14:51:55.7197387Z: 06/06/2023 14:51:55Z
Xamarin.iOS.Windows.HotRestartClient Error: 0 : Deploy Error: Could not find a part of the path 'C:\Users\gdurand\AppData\Local\Temp\Xamarin\HotRestart\Signing\EnergeasyConnect.Mobile.Pro.app\out\Payload\EnergeasyConnect.Mobile.Pro.app\EnergeasyConnect.Mobile.Pro.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator'.: 06/06/2023 14:51:55Z
    DateTime=2023-06-06T14:51:55.7197387Z: 06/06/2023 14:51:55Z
Xamarin.Messaging.IDB.Local.DeployAppMessageHandler Error: 0 : An error occurred while trying to deploy the app 'EnergeasyConnect.Mobile.Pro.app'. Details: Could not find a part of the path 'C:\Users\gdurand\AppData\Local\Temp\Xamarin\HotRestart\Signing\EnergeasyConnect.Mobile.Pro.app\out\Payload\EnergeasyConnect.Mobile.Pro.app\EnergeasyConnect.Mobile.Pro.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator'.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\gdurand\AppData\Local\Temp\Xamarin\HotRestart\Signing\EnergeasyConnect.Mobile.Pro.app\out\Payload\EnergeasyConnect.Mobile.Pro.app\EnergeasyConnect.Mobile.Pro.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.DirectoryInfo.EnumerateFileSystemInfos(String searchPattern, SearchOption searchOption)
   at System.IO.Compression.ZipFile.IsDirEmpty(DirectoryInfo possiblyEmptyDir)
   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 41: 06/06/2023 14:51:55Z
    DateTime=2023-06-06T14:51:55.7212756Z: 06/06/2023 14:51:55Z

Steps to Reproduce

  1. Add a reference to Plugin.Firebase.CloudMessaging to your project (using dotnet add package).
  2. Debug on an iOS Local Device.

Link to public reproduction project repository

https://github.com/gdurandrexel/mauifirebase

Version with bug

7.0.86

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

N/A

Did you find any workaround?

No response

Relevant log output

No response

@gdurandrexel gdurandrexel added the t/bug Something isn't working label Jun 6, 2023
@PureWeen PureWeen added the s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue label Jun 7, 2023
@ghost
Copy link

ghost commented Jun 7, 2023

Thanks for the issue report @gdurandrexel! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

  1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
  2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants