-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
SwiftUI preview crash: Sentry does not contain a slice for arm64e-apple-macosx21.1 #4350
Comments
Hello @DominikPalo, thanks for reaching out, I was able to reproduce the problem, we will investigate a solution for it. |
We need to build our framework with Xcode 16 to use the standard architectures, which includes arm64e now. Im so sorry about the inconvenience. |
This is blocked by #3398 |
I am seeing this in my project too. Good to hear that work is underway to fix the underlying issue. |
This was solved in #3398, and will be available in the next release. |
Hi, even on the latest commit, I am facing the same issue. I've tried clearing derived data and cache but the issue persists. |
Hello @kushsolitary, did you tried direct from main? |
Yes, it's on the main branch and preview is crashing with the same error: |
Ow, my bad, it won't work using main, because main points to the latest released binary. |
No worries, thanks for the update. |
Did this go out with 8.37.0? I just updated, and my previews are still broken:
|
The release notes don't mention this PR so it looks like it isn't included 😦 |
What kind of release schedule is Sentry on? This is a pretty critical issue. |
@brustolin any ETA on when will this be released? It's really hampering our development speed. |
Hello, @kushsolitary and @tonyarnold. Our release process is twofold, designed to prevent releasing bugs as much as possible. Yesterday, we promoted the latest beta version to release, and today we will release the unreleased features as a Beta so we can test them in real apps. Users can also try them, knowing it is a beta version. We will have it in the next few hours. I will let you know in here. |
8.38.0-beta.1 was released. You need to use the exact version in Xcode |
Brilliant, thanks @brustolin — that works for me in my project. SwiftUI is up and running again! |
Thanks @indragiek for me as well — I see you there, buddy 😂 |
@brustolin & @indragiek thank you guys! I've just updated our project to |
This Sentry update includes a fix for SwiftUI previews on the Mac platform: getsentry/sentry-cocoa#4350 (comment).
🛑 Blocked by
Platform
macOS
Environment
Develop
Installed
Swift Package Manager
Version
8.36.0
Xcode Version
16.0 (16A242d)
Did it work on previous versions?
Yes (Xcode 15)
Steps to Reproduce
We have a macOS SwiftUI app that references the Sentry framework. Since I updated Xcode to 16.0, the SwiftUI preview has stopped working. When I open any SwiftUI view file containing a PreviewProvider implementation, the Xcode preview window crashes. However, we can build and run the app without any issues.
Expected Result
SwiftUI preview window shows a mocked preview of the opened view.
Actual Result
SwiftUI preview fails with the
Sentry does not contain a slice for arm64e-apple-macosx21.1
error:Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: