-
-
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
Build fails on Xcode 16.0 Beta #3883
Comments
Hey @Mitch528 thanks for writing in - this was already fixed in the sentry-cocoa SDK. Please note that it will take a few days to get that released on sentry-cocoa and then dependency bumped and released here as well. |
Fix was released in https://github.com/getsentry/sentry-cocoa/releases/tag/8.29.0 |
@kahest Counting on you! |
I ran @_implementationOnly import _SentryPrivate |
Can we have a temporary workaround until the fix is released? |
Hi, is there any update progress? Or a temporary solution? |
Hello everyone, we will release 5.24.0 later today which will be compatible with Xcode 16. |
Just a quick heads up that 5.24.0 does not include the fix for this issue, but the main branch does include it from #3890 |
@aprilmintacpineda same here. My EAS builds did not work anymore, because my Expo project references Sentry 5.20.0. I didn't change anything either, but yesterday my Xcode was updated automatically to version 16.0, and that is now leading to this problem. Just change your Sentry version to |
but the newest sentry not support for my react native 0.61.5, any other ways? |
@marcell6 the oldest RN version we support with version 5.x of the SDK is 0.65. For comparison, Meta officially supports 0.73.x and newer. It is strongly recommended you upgrade the RN version you use. |
Mac OS: 15 Sequoia & XCODE-16 Fix: update sentry version to "@sentry/react-native": "^5.31.0", yarn install pod update clean build folder build again |
My RN app was working fine until I upgraded to Mac OS Sequoia and Xcode 16, then got this same error even though in the project I didn't install |
Using version 5.33.1 everything builds correctly but i cannot get the js/ts sourcemaps to be uploaded automatically when building on ios |
** |
i change the solution @diazgonza17 to
this is working for me in this version using xcode 16 and multi module project |
What are the steps to fix this problem? |
If you're wondering if there's a way to resolve this without upgrading to ^v5.31.0. I'm currently on ^1.7.2, so upgrading would be a nightmare. I managed to fix the Xcode 16 compatibility issues by manually editing some core Pod files: Added Added While this isn't an ideal solution (since manual changes to Pods can be overwritten), it allowed me to get things working without upgrading the entire library. If anyone has a better approach or suggestions on how to automate this fix, I'd appreciate it! |
@david-saint yes I also did manual like you haha, when upgrading sentry, it worked, but the map source is just empty and useless 🤣, the latest version doesn't support my react native 0.61.5, so the best way for me is like you did |
This is still happening in Expo, I just updated to the latest Xcode and the issue started. Why is this closed? |
Still happening for me. XCode Version 16.0 (16A242d) React-Native 0.74.2 |
@chimiWangchukWangdi @alexkendall which versions of @sentry/react-native do you use? Xcode support has been added in 5.31.0. Note that you might need to manually clean pods to ensure the correct version of sentry-cocoa is used - see above. |
@kahest I am not using @sentry/react-native, but maybe some of the packages has dependency. Do I need to update that package? I guess it will be a tough work to find that. |
@chimiWangchukWangdi if you're not knowingly using Sentry, you might get a similar error from another package. Do you see |
This solves the issue but I had to upgrade my sentry version from |
Xcode 16 was released 6 months ago. Why is this still happening? What is the recommended fix, I don't mind running the latest version of Sentry. |
Never mind. In my Podfile using:
Allowed it to build. I was using:
|
I also have this problem in our legacy project that is using react-native 0.63.4 with sentry/react-native 2.6.2 |
this is still an issue for us. |
Hi @a-eid, |
Xcode 16 is supported by the Sentry React Native SDK https://github.com/getsentry/sentry-react-native/releases/tag/5.24.1 and newer. We don't intend patch older releases of the SDK, please upgrade to newer SDK versions to support Xcode 16. As a temporary fix you can copy fixes we made in he You can use the following function in your ...
post_install do |installer|
react_native_post_install(...)
unsafe_patch_old_sentry_for_xcode_16()
end
...
def unsafe_patch_old_sentry_for_xcode_16
file_SentryCrashMonitor_CPPException = File.join(__dir__, "Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp")
add_to_SentryCrashMonitor_CPPException = "#include <exception>\n"
file_SentryCrashMachineContext = File.join(__dir__, "Pods/Sentry/Sources/SentryCrash/Recording/Tools/SentryCrashMachineContext.c")
add_to_SentryCrashMachineContext = "#include <sys/_types/_ucontext64.h>\n"
original_content_SentryCrashMonitor_CPPException = File.read(file_SentryCrashMonitor_CPPException)
unless original_content_SentryCrashMonitor_CPPException.include?(add_to_SentryCrashMonitor_CPPException.strip)
File.open(file_SentryCrashMonitor_CPPException, "w") do |file|
file.puts add_to_SentryCrashMonitor_CPPException + original_content_SentryCrashMonitor_CPPException
end
puts "[Sentry] Patched file: #{file_SentryCrashMonitor_CPPException}"
else
puts "[Sentry] No patch needed for: #{file_SentryCrashMonitor_CPPException}"
end
original_content_SentryCrashMachineContext = File.read(file_SentryCrashMachineContext)
unless original_content_SentryCrashMachineContext.include?(add_to_SentryCrashMachineContext.strip)
File.open(file_SentryCrashMachineContext, "w") do |file|
file.puts add_to_SentryCrashMachineContext + original_content_SentryCrashMachineContext
end
puts "[Sentry] Patched file: #{file_SentryCrashMachineContext}"
else
puts "[Sentry] No patch needed for: #{file_SentryCrashMachineContext}"
end
end |
@krystofwoldrich I was using |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 0.0.0
react-native
version: 5.23.1Are you using Expo?
Are you using sentry.io or on-premise?
Configuration:
(
@sentry/react-native
)I have the following issue:
Fails to build on Xcode 16.0 Beta (16A5171c)
Steps to reproduce:
Actual result:
Build fails
Expected result:
Build does not fail
The text was updated successfully, but these errors were encountered: