From f2b9160d8215bbe83da1e49cd12b03a38573ea13 Mon Sep 17 00:00:00 2001 From: Rishi Balakrishnan Date: Tue, 4 Aug 2026 23:32:40 +0000 Subject: [PATCH] fix(ios): pin MMKVCore to 2.4.0 to unblock Xcode 26 builds Pinning MMKV to 2.4.0 alone left MMKVCore free to resolve to 2.4.1, whose AESCrypt.cpp calls memset_s on the MMKV_APPLE path. Under Xcode 26 memset_s is only declared when __STDC_WANT_LIB_EXT1__ == 1, so the build failed with 'use of undeclared identifier memset_s'. Pin MMKVCore directly to 2.4.0. --- app.config.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app.config.js b/app.config.js index 072ff6a69..fd86d4e7f 100644 --- a/app.config.js +++ b/app.config.js @@ -287,10 +287,14 @@ module.exports = function (_config) { git: 'https://github.com/bluesky-social/MCEmojiPicker.git', branch: 'main', }, - // MMKV 2.4.1's secureClearMemory path calls memset_s, which fails to - // compile under Xcode 26. react-native-mmkv depends on MMKV ">= 1.3.3" - // with no upper bound, so pin below 2.4.1 until upstream fixes it. + // MMKVCore 2.4.1's AESCrypt.cpp calls memset_s on the MMKV_APPLE + // path, which fails to compile under Xcode 26 (memset_s is only + // declared when __STDC_WANT_LIB_EXT1__ == 1). Pinning MMKV alone is + // not enough: MMKV depends on MMKVCore with an open-ended range, so + // MMKVCore still floats to 2.4.1. Pin MMKVCore itself to 2.4.0 (which + // does not use memset_s) until upstream fixes it. {name: 'MMKV', version: '2.4.0'}, + {name: 'MMKVCore', version: '2.4.0'}, ], }, android: { -- knotmirror 0.0.1