#Minimum Xcode version for Sentry SDK?

19 messages · Page 1 of 1 (latest)

vernal compass
#

I'm using the Sentry macOS SDK successfully when I build on my Sonoma machine with Xcode 15.3. However, we have a continuous integration Mac that's running Xcode 14.2 (don't ask), and it doesn't compile there.

Is there a minimum Xcode version for this SDK? If so, what is it? (And is that information available on a website somewhere — I couldn't find it!)

Thanks so much!

vernal compass
#

Btw, here are the linker errors I'm getting when I build on Xcode 14, in case that's useful:

#

ld: warning: Could not find or use auto-linked library 'swiftCompatibilityPacks' ld: warning: Could not find or use auto-linked library 'swiftCompatibility56' ld: warning: Could not find or use auto-linked library 'swiftObservation' ld: warning: Could not find or use auto-linked framework 'Symbols' Undefined symbols for architecture x86_64:

#

And then a bunch of undefined things from the std:: package, which is used by Sentry

maiden jacinth
vernal compass
#

Huh. Interesting. I wonder why I'm getting these linking errors. Any ideas?

#

(It compiles on Xcode 15 just fine)

maiden jacinth
#

It looks like others have run into a similar issue where a static version of Sentry built with 14.2 does give errors, as there is some linking missing in the binary. Is it possible to upgrade the Xcode version?

vernal compass
#

it is not

#

Could I maybe specify some linker flags explicitly to fix this?

maiden jacinth
#

I have ask our Cocoa SDK engieers to take a look. In the meantime, can you please specify the Sentry SDK version being used?

vernal compass
#

We're using 8.25.0

vernal compass
#

I've figured out that adding the -lc++ linker flag in my Xcode 14.2 build fixes the stdlib errors

#

That leaves me with (maybe?) one last error:

#

Undefined symbol:_swift_FORCE_LOAD$_swiftCompatibility56

#

Unfortunately, Xcode 14.2 doesn't have this library. And it seems like the Sentry release we're using is built against Swift 5.6.

#

Is it possible to release a version that uses Swift 5.7?

#

Maybe that will solve my issue?

placid thorn
# vernal compass I'm using the Sentry macOS SDK successfully when I build on my Sonoma machine wi...

It's hard to tell what your problem exactly is @vernal compass by looking at the information you gave us here. It would be great if you could open an GH issue with enough context so we can reproduce the issue. Then it's easier for us to fix the issue.

Is it possible to release a version that uses Swift 5.7
If you mean by that to release a Sentry Cocoa SDK version with Swift 5.7, sorry no that's not possible. We want to support older Swift versions. We plan on bumping the min Swift version in the next major, but most likely it's going to be lower than Swift 5.7.