After updating the Mastodon iOS app to build with XCode 16, we are noticing some very weird data corruption, but only in Release configuration.
-
After updating the Mastodon iOS app to build with XCode 16, we are noticing some very weird data corruption, but only in Release configuration. We suspect this is some data corruption in one of our dependencies caused by some compiler optimisation, but so far we have not really found out the cause.
iOS dev friends, does this ring a bell?All the details are here: https://github.com/mastodon/mastodon-ios/issues/1348
-
@renchap @eliperkins noticed something similar with the GitHub app, it was the Fuzi dependency I think? I will let Eli chime in :-D.
-
@vcsjones @renchap oooh interesting. Seems very similar to the bug we experienced when upgrading to Xcode 16, where it only appeared in Release builds!
The bug we had in the GitHub app was related to Fuzi using `UnsafeBufferPointer(rebasing:)` rather than passing the C string buffer directly to libxml2.
We worked around this by calling the initializer that passes the C string buffer to libxml2 directly.
-
@eliperkins @vcsjones Thanks thats very helpful, our developer will have a closer look at this tomorrow