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 install or launch on device when device is not connected with a cable #21274

Open
rolfbjarne opened this issue Sep 19, 2024 · 2 comments
Labels
bug If an issue is a bug or a pull request a bug fix iOS Issues affecting Xamarin.iOS
Milestone

Comments

@rolfbjarne
Copy link
Member

Apple platform

iOS

Framework version

net8.0-, net9.0-

Affected platform version

All

Description

mlaunch is unable to install or launch an app on device unless the device is connected with the USB cable, even if "Connects via Network" is enabled in Xcode.

Steps to Reproduce

  1. Make sure device works in Xcode without the cable.
  2. Try to launch an iOS app on the device.

mlaunch will say:

[...]
Please connect the device '[...]'...

Did you find any workaround?

Use the cable.

Relevant logs

No response

@rolfbjarne rolfbjarne added bug If an issue is a bug or a pull request a bug fix iOS Issues affecting Xamarin.iOS labels Sep 19, 2024
@rolfbjarne rolfbjarne added this to the Future milestone Sep 19, 2024
@Too-Many-User-Names
Copy link

If the phone is connected to a device that occupies the Lightning connector, then the workaround isn't viable. We need to debug our app while using this hardware and cannot.

Also, we only started seeing this when the phones were upgraded from iOS 16 to iOS 17. Apple changed the debugging infrastructure in iOS 17. I know that mlaunch was updated to match, but it appears that it doesn't work properly with wireless debugging. This might be related to the new "available" (but not connected) status that is seen when using devicectl.

@rolfbjarne
Copy link
Member Author

If the phone is connected to a device that occupies the Lightning connector, then the workaround isn't viable. We need to debug our app while using this hardware and cannot.

Can you try launching connected, and once the app has launch disconnect from your mac and connect your hardware?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug If an issue is a bug or a pull request a bug fix iOS Issues affecting Xamarin.iOS
Projects
None yet
Development

No branches or pull requests

2 participants