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

Unable to deploy to iphone from VS 2022 #18947

Closed
sabrigo opened this issue Nov 22, 2023 · 6 comments
Closed

Unable to deploy to iphone from VS 2022 #18947

sabrigo opened this issue Nov 22, 2023 · 6 comments
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert 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

@sabrigo
Copy link

sabrigo commented Nov 22, 2023

Description

unable to deploy to iPhone.

my iPhone is running on version 17.1.1 and Xcode is in version 15.0.1

VS: Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.8.1

Error error MT1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/9_/dj9xmnzx6yx1zkb8fymb2gsh0000gn/T/tmp0NbO13.tmp device install app --device "" /Users/sabgo/Library/Caches/Xamarin/mtbs/builds/MauiApp3/8caa5ad3d685cb171e60d2fa52180568d2c53ec3fe5c0ddd40f07cfd9bb7784f/bin/Debug/net8.0-ios/ios-arm64/device-builds/iphone14.2-17.1.1/MauiApp3.app' returned the exit code 1. 0

Steps to Reproduce

  1. Create a new .NET MAUI App
  2. simply connect to your iphone device running the latest OS version1
  3. run to deploy to the phone.

Link to public reproduction project repository

https://github.com/sabrigo/IconNotShowingIniOS

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17.1.1

Did you find any workaround?

No response

Relevant log output

No response

@sabrigo sabrigo added the t/bug Something isn't working label Nov 22, 2023
@jsuarezruiz jsuarezruiz added area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/iOS 🍎 labels Nov 22, 2023
@adamkrist1
Copy link

adamkrist1 commented Nov 22, 2023

same issue except Xamarin, and Xcode is 15.0 (15A240d)
error MT1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/yr/3kfdg/T/tmpTin0wV.tmp device install app --device ""/Users/ak/Library/Caches/Xamarin/mtbs/builds/Sp.iOS/57d43/bin/iPhone/Debug/device-builds/iphone15.5-17.1.1/Sp.iOS.app' returned the exit code 1.

For what it's worth, while I could not deploy to iphone 15 pro for debuging, I was able to build (release) and run app in TestFlight (on iPhone 15 Pro, 17.1.1). Probably obvious to most of you...

@PureWeen PureWeen added the s/move-to-vs-feedback Tells automation to ask the person to use VS Feedback to report the issue label Nov 22, 2023
@ghost
Copy link

ghost commented Nov 22, 2023

Thanks for the issue report @sabrigo! 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.

@sabrigo
Copy link
Author

sabrigo commented Nov 22, 2023

@sabrigo sabrigo closed this as completed Nov 22, 2023
@ben-dean
Copy link

The top answer on this SO question fixed the issue for me.

https://stackoverflow.com/questions/74128227/error-he0046-failed-to-install-the-app-simctl-returned-exit-code-72.

@last-Programmer
Copy link

I am also getting the error when deploying native ios application to remote device.

@eqmarcin
Copy link

eqmarcin commented Dec 7, 2023

It happened to me after updating Xcode on Mac to 15.0.1.
On my Windows PC I deleted obj and bin folders for the app, ran Clean & Build and app installed OK on remote iPhone after that.

@samhouts samhouts added the migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert label Dec 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert 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

8 participants