JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

Pair to mac with .NET Meteor? #79

Open czmirek opened 8 months ago

czmirek commented 8 months ago

I work on Windows PC which is in the network with a Mac that has iPhone 12 connected to it.

In Visual Studio there is the Pair to Mac functionallity that works well. I pair to Mac and iPhone 12 is detected and I can build and deploy to it and debug my app on it.

Is this possible to do with .NET Meteor?

JaneySprings commented 8 months ago

Hi, @czmirek ! I think it is a duplicate of #62

Unfortunately, this option is currently unavailable. I continue experimenting in this direction, but right now I only managed to build an application and deploy it to an iOS device connected to the Windows machine. Still, I'll continue my researches. Thank you for your interest in this feature.

czmirek commented 8 months ago

Hi, @czmirek ! I think it is a duplicate of #62

Unfortunately, this option is currently unavailable. I continue experimenting in this direction, but right now I only managed to build an application and deploy it to an iOS device connected to the Windows machine. Still, I'll continue my researches. Thank you for your interest in this feature.

I mean I don't care whether the iPhone is connected to my Windows machine or to the Mac since both of them are physically next to me. So that works for me as well.

JaneySprings commented 8 months ago

I see. Still, I cannot include the current implementation as-is, because there are some must have features (Hot Reload, Debugging, etc.) that I would like to complete before. Thank you for your patience.

czmirek commented 8 months ago

Okay thanks for the update :)

Ghostbird commented 6 months ago

Wouldn't this work by using VCode's SSH remote feature to work on the Mac filesystem from Windows/Linux? That's what I've been using. I'm just looking for a way to interact with the iOS simulator on my Linux system, but that's another issue.

JaneySprings commented 6 months ago

I don't try this case. That is all I know: For building on Windows:

dotnet build -f:net8.0-ios -p:ServerAddress=<Mac hostname or IP> -p:ServerUser=<user name> -p:ServerPassword=<user password>

(Maybe it will work on Linux)

As for running: VisualStudio uses a Microsoft.iOS.Sdk.Windows component from workloads. It contains many internal tools like ideviceinstaller.exe for installing on physical device. Maybe there is an executable for working with remote simulators?