-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
IOS Build failed in Xcode 16 #4095
Comments
I'm also getting build errors on the latest Xcode
|
Same here using expo and development client. |
Fixed it by updating react-native to 0.75 (React Native 0.75 is now available with Expo SDK 51) and sentry to 5.32 |
Thanks but that's not a solution :) Especially if your project scale is a bit bigger than regular |
I was able to resolve this by upgrading to @sentry/react-native 5.32.0. I am still using React Native 0.73 and Expo 50. |
Upgrading to 5.32.0 does indeed allow us to build the app, however we're seeing a crash in production builds:
This is coming from https://github.com/getsentry/sentry-react-native/blob/main/ios/RNSentry.mm#L455, where sometimes I'll open a separate issue with this as well once I verify this isn't a bizarre cache issue. |
I upgrade to versions 5.24.0, 5.24.3 and 5.32 with react native 0.74.5 but the problem wasn't fixed.
|
Only upgrading did not fixed on me either, you also need to apply this in your Podfile.
|
Thanks! It seems to work only with version 5.32.0. Is this a bug or an expected behaviour? |
Same error for 'Sentry' installed package. I updated with recommended settings (Xcode warnings) and add condition to disable APPLICATION_EXTENSION_API_ONLY for non-Sentry targets.
Any recommendations? |
I think it would be more correct to pass this question to the appropriate repository, sentry-cocoa 😳 |
@jrodriguer which version of the SDK are you using? For building with Xcode 16 you need to update to |
❗ Please note: For building with Xcode 16 you need to
We're investigating how we can make the second step unnecessary (related: #3908). |
I don't have react-native, if not an IOS project with Pod as a dependency manager. I have updated |
I got error when my xcode update to 16.0,and when i use "@sentry/react-native": "^5.31.0", rebuild there toast system crash:
|
I'm getting this error with expo ^51.0.18, react native 0.74.3 and sentry ~5.32.0
|
I am getting this error with the latest Xcode and |
This combination for expo worked for us: Expo: 51.0.31 |
Quick update - we're working on getting Expo's dependency updated. We're also investigating some reports of source maps not being uploaded correctly with Xcode 16, but weren't able to reproduce this. If you have more info - ideally a repro - please let us know |
|
Xcode 16, React Native version
|
In my case, I’m using an older version of RN and Sentry, and the following error occurred. After adding this code at the bottom of the Podfile, it can run successfully.
|
same here |
@maimai886 Thank you for posting the workaround for RN 0.61.2 and Xcode 16. Is there anything else we can do for you? If so please open a new issue where we can track it. Currently RN 0.65 and older are unsupported by both the Sentry RN SDK and byt the React Native team. |
@shehryar-munir Thank you for reporting the issue with RN 0.64, Xcode 16 and What Sentry RN SDK version were you using before upgrading to Xcode 16? |
This is so frustrating.. since the new xcode was released i think I am going to have to spend who knows how long figuring out how to rebuild this app to work on the latest RN version Anyway, I started having this issue on 0.69.6 and 4.2.2 I wasn't having it yesterday but I ran a new prebuild in an attempt to fix some other deps and now this is causing me pain again, hopefully I can upgrade to a minor version bump to resolve I also noticed on the older version that there was a bitcode error when uploading to app store with xcode16 and 4.2.2 - if relevant for whoever reads this lol |
Hi @wdifruscio, Let us know if https://github.com/getsentry/sentry-react-native/releases/tag/5.31.1 works for you. This and later v5 version don't have any known issues with the Xcode 16. |
* chore: Upgrade sentry packages * fix yarn.lock * pod update * Update Podfile * fix: getsentry/sentry-react-native#4095 --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com>
* chore: Upgrade sentry packages * fix yarn.lock * pod update * Update Podfile * fix: getsentry/sentry-react-native#4095 --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com>
* fix(HW-762): Reset pin fix * up app version * chore: index.js sugar (#2118) * chore: Upgrade sentry packages (#2119) * chore: Upgrade sentry packages * fix yarn.lock * pod update * Update Podfile * fix: getsentry/sentry-react-native#4095 --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com> * feat: reset wallet when keychain broken (#2121) Co-authored-by: iGroza <xneonxneon1@gmail.com> * chore(HW-771): update fastlane (#2122) Co-authored-by: iGroza <xneonxneon1@gmail.com> --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com>
* fix(HW-762): Reset pin fix * up app version * chore: index.js sugar (#2118) * chore: Upgrade sentry packages (#2119) * chore: Upgrade sentry packages * fix yarn.lock * pod update * Update Podfile * fix: getsentry/sentry-react-native#4095 --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com> * feat: reset wallet when keychain broken (#2121) Co-authored-by: iGroza <xneonxneon1@gmail.com> * chore(HW-771): update fastlane (#2122) Co-authored-by: iGroza <xneonxneon1@gmail.com> --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com>
* fix(HW-773): Remove banner check for permanent notifications banner * fix: native swap (#2120) * fix(HW-759): swap screen issues * fix(HW-763): added swap finish screen * feat: added swap tokens sorting --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> * fix(HW-762): Reset pin fix (#2116) * fix(HW-762): Reset pin fix * up app version * chore: index.js sugar (#2118) * chore: Upgrade sentry packages (#2119) * chore: Upgrade sentry packages * fix yarn.lock * pod update * Update Podfile * fix: getsentry/sentry-react-native#4095 --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com> * feat: reset wallet when keychain broken (#2121) Co-authored-by: iGroza <xneonxneon1@gmail.com> * chore(HW-771): update fastlane (#2122) Co-authored-by: iGroza <xneonxneon1@gmail.com> --------- Co-authored-by: iGroza <xneonxneon1@gmail.com> Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com> * feat(hw-770): implement-open-browser-dynamic-link-for-mobile-wallet (#2117) Co-authored-by: iGroza <xneonxneon1@gmail.com> * feat(HW-761): log all navigation params for Posthog (#2115) * feat(HW-761): Hide privateKey for posthog * feat(HW-761): Hide currentPin from posthog * feat(HW-761): Hide WalletInitialData mnemonic and privateKey from posthog * feat(HW-761): Convert SecureValue method to getter * up version * feat(HW-761): FIx hide value string representation --------- Co-authored-by: Kirill Ageychenko <iGroza@users.noreply.github.com> Co-authored-by: iGroza <xneonxneon1@gmail.com>
how do you fix it ? |
Hey, I see it was closed, yet when trying to build with new sentry package it throws some weird error (android + iOS) |
I was luckily, after much pain, able to build on the latest sentry version and 0.69.9 without too many hiccups, I feel like react native developers should have the xcode release dates in their calendar to make sure all major releases are deployed beforehand -_- |
❗ Update from the maintainers: For building with Xcode 16 you need to
@sentry/react-native
version 5.31.0 or newer.We're investigating how we can make the second step unnecessary (related: #3908).
Description
I just updated my mac to MACOS 15. And also updated Sentry version to latest which is 5.32 but i started to get this build error in Xcode.
Previously i was using xcode 15 and macOS Sonoma and 5.19 of Sentry.
My setup
"@sentry/react-native": "^5.32.0",
"react-native": "0.72.14",
XCode: Version 16.0 (16A242d)
The text was updated successfully, but these errors were encountered: