xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.44k stars 507 forks source link

How to test on Mac (Designed for iPad) or Apple Vision pro? #20868

Open ysmoradi opened 1 month ago

ysmoradi commented 1 month ago

As you might already know, in iOS Apps on Mac Availability section of appstoreconnect.com, you can allow your iOS app to run on Silicon mac devices (Not the Intel ones)

And in iOS Apps on Apple Vision Pro Availability section, you can allow your iOS app to run on Apple Vision pro.

image

This is not the same as mac-catalyst which works on both Intel and Silicon mac devices and produces pkg file. I'm talking about publishing iPad result of the iOS publish to mac devices.

When you create iOS only app (Not the Multiplatform one) in xcode

image

You can still test it on your silicon mac device or Apple Vision pro simulators and devices

image

How can I run my iOS app (Not the mac catalyst one) on my mac device using that Designed for iPad profile?

rolfbjarne commented 1 month ago

The only way I know of at the moment is to publish to TestFlight, and install on the Mac / Apple Vision Pro that way.

Unfortunately Xcode's way of launching iOS apps on macOS isn't documented as far as I can tell, and their implementation is closed source, so some investigation would be necessary in order to figure out how to do it. This probably means it won't happen for a while (unless someone contributes the solution).