Problem
Attempting to run the MAUI project on a physical device discovered over WiFi causes run to stuck on launching mlaunch:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/tools/bin/mlaunch
--devname "device_name" --killdev com.projectNamespace --launchdev /Users/Path/ToProject/bin/Debug/net8.0-ios/iossimulator-arm64/DrawCraftStudio.app ...
Please connect the device 'DeviceName'
Resolution
There is probably an issue in xCode release. Check the release notes. If the issue happens with xCode 16, there is a known issue: Unable to install or launch on device when device is not connected with a cable:
Known Issues Xcode is sometimes unable to determine if developer mode is enabled when using a device over the network. (131662031) (FB14298506) Workaround: Connect the device directly to the Mac using a USBC or Lightning cable, then place the device in airplane mode to force Xcode to use the device over the wired connection. Once Xcode is successfully using the device over the wired connection, you can turn airplane mode back on, and Xcode will continue to use the wired connection. If Xcode is unable to determine the state of developer mode on a device, it will report that developer mode is disabled, possibly leading to confusion if developer mode is actually enabled. (133418906)
Try connecting the device over USB instead of WiFi. Disable WiFi or enable AirPlane mode.
Comments
0 comments
Please sign in to leave a comment.