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

Support iOS deploying on Windows #62

Closed
MLB-BIOMETRIC opened this issue Jun 5, 2023 · 9 comments
Closed

Support iOS deploying on Windows #62

MLB-BIOMETRIC opened this issue Jun 5, 2023 · 9 comments
Labels
enhancement New feature or request

Comments

@MLB-BIOMETRIC
Copy link

With the current configurations below, the debugger doesn't get attached - nor does my connected device get the app installed.

What am I doing wrong?

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": ".NET Meteor Debugger",
      "type": "dotnet-meteor.debugger",
      "request": "launch",
      "preLaunchTask": "dotnet-meteor: Build"
    }
  ]
}
using DotNet.Meteor.HotReload.Plugin;
...
    builder
      .UseMauiApp<App>()
      .EnableHotReload()
Executing task: dotnet build "c:\Users\xx\Documents\xxx\xx\xx\project.csproj" -c:Debug -f:net7.0-ios -t:Build -p:RuntimeIdentifier=ios-arm64

Build succeeded
Time Elapsed 00:00:01.91
 *  Terminal will be reused by tasks, press any key to close it.

image

@JaneySprings
Copy link
Owner

Hello! Thank you for your issue. Can you open a Debug Console tab and send an output?
image

@MLB-BIOMETRIC
Copy link
Author

MLB-BIOMETRIC commented Jun 5, 2023

Hello! Thank you for your issue. Can you open a Debug Console tab and send an output? image

Ah! Sorry for not including the Debug Console.

I am getting this in the Debug Console:

Uploading XXX.app package contents... DONE.
ERROR: could not locate c:\Users\xxx\Documents\xxx\xxx\xxx\bin\Debug\net7.0-ios\ios-arm64\XXX.app/Info.plist in app!

Is it because the /Info.plist backslash, compared to the rest of the \?

My .csproj looks like this <IpaMetadata>Platforms\iOS\Info.plist</IpaMetadata>

I am developing on Windows.

@JaneySprings
Copy link
Owner

Are you trying to run iOS on Windows? This is not possible. Some Microsoft iOS tools on Windows are not working at the moment. In my free time I study idevicedebug.exe and idevicemount.exe, but I can only to install the app without debugging on an iOS device connected to Windows with PairToMac build.

@MLB-BIOMETRIC
Copy link
Author

MLB-BIOMETRIC commented Jun 5, 2023

Are you trying to run iOS on Windows? This is not possible. Some Microsoft iOS tools on Windows are not working at the moment. In my free time I study idevicedebug.exe and idevicemount.exe, but I can only to install the app without debugging on an iOS device connected to Windows with PairToMac build.

I am trying to deploy the app to my connected iPhone through USB. This works in Visual Studio 2022, just without the debugger attached. It used to work with the debugger attached as well, but I think the latest version broke it.

I just found out if I switch the provisioning profile and certificate to Apple Development then the debugger gets attached in Visual Studio 2022.

I am using the Visual Studio 2022 Hot Reload functionality to deploy it to my connected iPhone through USB.

I am just tired of developing in Visual Studio 2022, and instead want to do it more lightweight with your amazing .NET Meteor work! :)

I think it would work, if it was just able to find my Info.plist - not sure why it can't find it when its correctly located under XXX/Platforms/iOS/Info.plist

@JaneySprings
Copy link
Owner

If you look at the build result (bin/Debug/net7.0-ios/ios-arm64/YOUR_APP.app) then this folder will be almost empty. I do not know why, but at the moment dotnet cannot build an iOS app on Windows without PairToMac. In addition, as I understand it, ideviceinstaller, which uses .NET Meteor, expects an .ipa file, not an .app.

If you use Windows, then you should use Visual Studio, since it works better and the Microsoft Team knows how everything works there. I'm studying everything myself and I can't guarantee when I'll be able to do iOS support on Windows

@MLB-BIOMETRIC
Copy link
Author

@JaneySprings Alright! Thanks for your great work. I hope in the future, that .NET Meteor will be working as good as the Full Visual Studio 2022 installation. :)

I enjoy VSCode much more than the entire Visual Studio 2022.

@JaneySprings JaneySprings reopened this Jun 6, 2023
@JaneySprings JaneySprings added the enhancement New feature or request label Jun 6, 2023
@JaneySprings JaneySprings changed the title Debugger not being attached? Support iOS deploying on Windows Jun 6, 2023
@JaneySprings JaneySprings linked a pull request Oct 6, 2024 that will close this issue
7 tasks
@JaneySprings
Copy link
Owner

Hi, @MLB-BIOMETRIC ! Sorry for the late response, I will add this feature in the new 6.0.0 version of .NET Meteor!
At the moment, I have already done Debug and HotReload support.

#126

@MLB-BIOMETRIC
Copy link
Author

@JaneySprings That is amazing! Thanks for the update.

@JaneySprings
Copy link
Owner

Pair to Mac has been added in the 6.1.0 version. Check for updates in the VSCode extensions tab.

Check the following instruction to enable pair to mac in your projects. Please note that only physical devices (not simulators) are currently supported.

I'd love to hear your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants