iOS Broken dependency: @sentry/react-native 5.27.0

Software:

  • Mattermost Mobile Release 2.20.1
  • 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

While researching, I found out, that this is a bug in sentry and it was fixed with v5.31.0.
See missing ucontext64_t type Xcode Version 16.0 (16A242d) · Issue #4097 · getsentry/sentry-react-native · GitHub

But Mattermost is using Sentry v5.27.0.
So how is it possible for you to build that with a broken dependency?

Best regards
Jens

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!