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 visionOS #961

Open
3 tasks
dcharkes opened this issue Feb 5, 2024 · 5 comments
Open
3 tasks

Support visionOS #961

dcharkes opened this issue Feb 5, 2024 · 5 comments

Comments

@dcharkes
Copy link
Collaborator

dcharkes commented Feb 5, 2024

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

This should probably either be another OS or another IOSSdk:

abstract class OS {
static const OS android = model.OS.android;
static const OS fuchsia = model.OS.fuchsia;
static const OS iOS = model.OS.iOS;
static const OS linux = model.OS.linux;
static const OS macOS = model.OS.macOS;
static const OS windows = model.OS.windows;

abstract class IOSSdk {
static const IOSSdk iPhoneOs = model.IOSSdk.iPhoneOs;
static const IOSSdk iPhoneSimulator = model.IOSSdk.iPhoneSimulator;

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.
@stuartmorgan
Copy link

stuartmorgan commented Feb 6, 2024

or another IOSSdk

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

@guilherme-francisco
Copy link

Did you manage to find a solution for this?

@stuartmorgan
Copy link

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.

@dcharkes
Copy link
Collaborator Author

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:

@guilherme-francisco
Copy link

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

@dcharkes dcharkes added this to the Native Assets v1.1 milestone Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants