native icon indicating copy to clipboard operation
native copied to clipboard

Support `visionOS`

Open dcharkes opened this issue 1 year ago • 5 comments
trafficstars

We'd like to support the visionOS as SDK option when compiling with XCode.

This should probably ~~either~~ be another OS ~~or another IOSSdk~~:

https://github.com/dart-lang/native/blob/876f9a1948c1642a57640ef9b1526746042a17eb/pkgs/native_assets_cli/lib/src/api/target.dart#L36-L42

https://github.com/dart-lang/native/blob/876f9a1948c1642a57640ef9b1526746042a17eb/pkgs/native_assets_cli/lib/src/api/ios_sdk.dart#L10-L12

We need this in:

  • [ ] package:native_assets_cli so that it can be passed in from flutter_tools and consumed in build.dart scripts.
  • [ ] package:native_assets_builder so that it can be passed in from flutter_tools.
  • [ ] package:native_toolchain_c so that the right SDK path is passed when compiling C code.

dcharkes avatar Feb 05 '24 18:02 dcharkes

or another IOSSdk

It's not an iOS SDK, it's the visionOS SDK, which is a different SDK.

stuartmorgan-g avatar Feb 06 '24 10:02 stuartmorgan-g

Did you manage to find a solution for this?

guilherme-francisco avatar Jul 17 '24 11:07 guilherme-francisco

This isn't a "find a solution" kind of issue, it's a "do the work of adding all of the plumbing" kind of issue. There's not going to be a trick or shortcut, it something that has to be worked through methodically.

stuartmorgan-g avatar Jul 17 '24 11:07 stuartmorgan-g

To clarify, there's no point in adding support in the native assets feature, which this issue is tracking, if Flutter doesn't have support yet:

  • https://github.com/flutter/flutter/issues/128313

dcharkes avatar Jul 17 '24 11:07 dcharkes

Nice! Thank you guys for the quick response. I am trying to understand the work that needs to be done for visionOS support and when I tried to run it through xcode it got me here

guilherme-francisco avatar Jul 17 '24 11:07 guilherme-francisco