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
feat: add visionOS support #1358
Conversation
fabb2be
to
2d92e23
Compare
both cmake 3.28.4 and 3.29 are released! https://cmake.org/download/ |
Out of curiosity, what functionality was needed in CMake? |
@@ -24,13 +24,14 @@ Pod::Spec.new do |spec| | |||
# The podspec would be serialized to JSON and people will download prebuilt binaries instead of the source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think React Native uses this file. It is pretty outdated, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was needed to make the internal hermes tests work and properly build in Xcode
There were a few bugs/enhancements like this one when linking a simulator binary versus a real device binary: |
0e503ec
to
484be5b
Compare
Thanks for working on this, most of the changes seem safe and in line with the existing implementation (apart from the tests failures). I know this isn't quite ready yet, but we took a look and wanted to share some thoughts.
|
484be5b
to
12a64fb
Compare
Hey @neildhar,
|
So without a brew upgrade, we are installing CMake 3.28.3 (and 3.28.4) is required for Apple Vision 😕 |
f33c5bd
to
d2f90af
Compare
The problem with running
|
6784b01
to
439d599
Compare
@okwasniewski I think the Android image issue should be addressed by #1364, so you should be able to remove those changes from this PR |
439d599
to
ca1640d
Compare
71607be
to
b9a8dd2
Compare
@neildhar I've applied your comment. CMake is now installed separately. |
@neildhar has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@okwasniewski has updated the pull request. You must reimport the pull request before landing. |
239881a
to
1d4fe88
Compare
@okwasniewski has updated the pull request. You must reimport the pull request before landing. |
1d4fe88
to
b9a8dd2
Compare
@neildhar has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hey! Is there anything I can do to help you resolve those internal build issues? |
Hey @okwasniewski, I tried doing some cleanup internally to minimise changes but can't export them back out to your PR. Could you apply this patch to the CI config? It addresses some lints and removes changes in jobs that do not build for visionOS.
|
b9a8dd2
to
b9f6431
Compare
@okwasniewski has updated the pull request. You must reimport the pull request before landing. |
Hey @neildhar, sorry for the delay I was on time off. I've updated the PR, hopefully the tests will be green now 🤞 |
@@ -165,10 +165,6 @@ jobs: | |||
- checkout | |||
- restore_cache: | |||
key: v4-repo-{{ .Environment.CIRCLE_SHA1 }} | |||
- run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apologise, I thought testing didn't require CMake, but it looks like pod install is looking for it. We should add the same thing here with a comment.
b9f6431
to
888657f
Compare
@okwasniewski has updated the pull request. You must reimport the pull request before landing. |
ci: update to Xcode 15.2 feat: add visionos to podspec add xr framework metadata fix: set correct target for xros feat: temp workaround for CMake bug
888657f
to
8ca3eb8
Compare
@okwasniewski has updated the pull request. You must reimport the pull request before landing. |
@neildhar has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary
This PR adds support for visionOS.
Note: Unreleased version of CMake 3.28.4 is required to build for visionOS. We might need to wait until it gets released.
Things to sort out:
Test Plan
Build test app for visionOS