-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Add VisionOS Support for Carthage #3410
Comments
All we need to do is start using a Xcode that has visionOS support, but I don't recommend using a beta version to release our official XCFramework artefact. |
Only Xcode beta has support, which doesn't run on GH actions. |
For now, our users can do the following to build their own XCFramwork with visionOS support by using Xcode beta:
|
We're trying to build locally, but keep running into this issue:
Any advice on how to fix this? We're running the Makefile commands as given in the instructions, with the downloaded source, so there shouldn't be any differential here. |
Ok interesting finding... This succeeds:
This fails:
So we're currently looking for an incompatibility with some xros setting. |
We figured it out! For some reason, |
Mark is out today but this was another issued we encountered We were able to work around that issue, but another one that came up is when we were trying to link the SentrySwiftUI framework to our app targets.
This error came up for all of our platform targets except visionOS, which was odd. It definitely could be related to how we built it with our workaround above, but just in case, I'm adding that to the discussion. Thanks! |
Hi @marksands & @samwu888 - thank you for the details! To clarify, are you currently blocked, and if so, on which platform(s)? Also, is the version in the snippet above ( |
Xcode 15.2 GM has been released yesterday, which is the first official Xcode release with full visionOS support. We can now test and work towards supporting this. |
There's a pre-release macos-13 runner-image with Xcode 15.2 available now: https://github.com/actions/runner-images/releases/tag/macos-13%2F20240114.1 |
Pre build visionOS for Carthage. Fixes GH-3410
Fix Sources/Configuration/SDK.xcconfig by removing the workaround added with #491 so CI can build Carthage XCFrameworks to include VisionOS. The workaround seems to be fixed with Carthage/Carthage#3001 in Carthage 0.35.0 released in Jun 2020. Therefore, we can remove the SDKROOT__CARTHAGE settings in Sources/Configuration/SDK.xcconfig, which caused problems when building the SDK for visionOS see #3410 (comment). We never removed the workaround #491, as it didn't cause any problems. Furthermore, bump pre-commit action https://github.com/python-jsonschema/check-jsonschema to 0.27.3, so it allows macos-13-xlarge as a valid runner.
We don't have an xrOS slice in our xcframework deliverable as of Sentry 8.15.2.
Support for VisionOS was added in Carthage 0.39.1 to add xrOS slices to xcframeworks.
The VisionOS SDK is still only delivered in the latest Xcode beta (15.1b3 released 14 Nov) and not the latest GA release version (15.0.1), and we don't currently use betas in our release job. (In fact, we're still running Xcode 14.3 for building the xcframework: #3411.)UPDATE: there is movement on this front, now that Xcode 15.2 is out with GA support for VisionPro/xrOS, and GitHub has a prerelease actions runner with the requisite OS/toolchains: #3410 (comment)Part of us upgrading to Xcode 15.2 in CI will overlap with #3329
After we support VisionOS for Carthage, we need to update the docs getsentry/sentry-docs#8496.
The text was updated successfully, but these errors were encountered: