I just upgraded Realm to 10.1.3 in my React Native app after encountering this error:
failed to validate upload changesets: failed to validate ArrayInsert instruction: cannot have index (1) greater than prior-size (0) (ProtocolErrorCode=212)
When testing on iOS simulators (I’ve tried 3-4 of them) and Android simulators, the requests come in with the correct SDK version in the Realm logs (e.g. ios vRealmJS/10.1.3
), but when building the release version onto my device, the SDK version comes in as react-native vRealmJS/10.0.1
. I tried nuking node_modules, pods, pod caches, build folders, and everything else I could think of, but still whenever I either build the app onto my device or generate an archive via Xcode, I still get this 10.0.1 version in the logs, which comes with the error mentioned above. Everything is resolved when building onto simulators, both in debug and release modes, but for some reason pushing it to the device or through app store connect doesn’t get the updated 10.1.3 version.
Would really appreciate any guidance on this - I’ve been wrestling with this error all day and somehow releasing this Realm update has ended up being the roadblock.