It can download Javascript (or other interpreted language, or config data), but you generally can't download and execute new compiled native code on iOS, due to iOS code-signing/executable-memory restrictions.

Also keep in mind Apple might penalize you for dodging the review process and shipping new features, etc.

(btw, one exception to the JIT rule is custom browsers for the EU)

Pardon my ignorance but can't an iOS app host a WASM runtime without being a browser? And if so it doesn't need to be an interpreted language necessarily.

I am fairly certain this is against Apple's policies. In principle you're not supposed to change the functionality of your app without review.

i don't see any difference between wasm and js? If react native apps can be updated with js, wasm should be allowed.

I think updating js without review is also against policy.

It's a grey area.

App Review Guidelines §2.5.2 says: "Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps"

Technically Apple can punish you for anything but so far it seems to be accepted for small fixes and tweaks.

Doesn't seem like a grey area at all, pretty clear it is against the policy. Just a ridiculous policy and hard to enforce.

Yes, it could, but then you would have re-invented React Native. But in WASM.

Yeah, but to my understanding that’s not what Shopify is doing.