Skip to content

Storage: exclude_from_backup/1 reports :unsupported on an older iOS native build - #210

Merged
GenericJam merged 2 commits into
masterfrom
fix/storage-exclude-unsupported-on-old-ios
Oct 16, 2026
Merged

GenericJam merged 2 commits into
masterfrom
fix/storage-exclude-unsupported-on-old-ios

Conversation

@GenericJam

Copy link
Copy Markdown
Owner

The 0.9.21 release gate (reviewer subagent; Codex at its usage limit) found that exclude_from_backup/1 returned :ok when new BEAMs ran on an iOS native build that predates the NIF (the Erlang stub raises :not_loaded), so the path stayed in iCloud backup while the call reported success.

Now: a missing NIF answers by platform (nif.platform/0, guarded): iOS gets {:error, :unsupported}; Android and the host keep the no-op :ok (nothing is backed up there). The NIF module is injectable (nif \\\\ :mob_nif), as Mob.RenderStats.native_call/3 does, so the old-iOS case is tested with stub modules. The new test fails on the previous code (it got :ok).

CHANGELOG [Unreleased] and the guide say the iOS half needs mix mob.deploy --native.

Tracked in bezalel-lac.3 (Linear's free-tier issue limit is reached).

@GenericJam
GenericJam merged commit efa80b1 into master Oct 16, 2026
4 checks passed
@GenericJam
GenericJam deleted the fix/storage-exclude-unsupported-on-old-ios branch October 16, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant