Ruby 3.2.2 (Installation of Ruby 3.0.6 failed over and over - it’s an unsupported and end-of-life version)
macOS Sequoia 15.0.1
Xcode 16.0
Hardware:
Mac mini, M1 2020
So first of all npm install works perfectly fine without any errors.
But then everytime I try to build the mobile release 2.20.1 with the npm-dependency @sentry/react-native 5.27.0, I get a Xcode error
Missing ‘#include <sys/_types/_ucontext64.h>’; ‘ucontext64_t’ must be declared before it is used
Hi Jens, thanks for bringing this up! It sounds like the issue may stem from the older version of Sentry being used in the Mattermost mobile build. You could try updating the Sentry dependency to v5.31.0 in your local environment as a temporary fix while we investigate. Let us know if you need further assistance!
Hi Jens, thank you for the detailed follow-up and for pointing out the root cause related to Sentry!
@matthewbirtch - Is this something that we would be able to create a Jira ticket for so the team can review upgrading Sentry in future releases to address compatibility with Xcode 16.0?
In the meantime Jens, feel free to share any other insights or challenges you encounter! Let us know how else we can assist.
@jherman if you are trying to build 2.20.1 that is an old version by now that is using an old version of Sentry and also has some issues building on xcode 16
Thank you so much @elias !
I thought v2.22.0 is the newest version, because that is the latest tag (used in Github) and the latest release, but there already is a newer release branch v2.23.0 with the Xcode 16 fix. Now it’s working totally fine! Thanks again