logoalt Hacker News

mohamedkoubaayesterday at 11:23 PM3 repliesview on HN

Are you saying a native app can't make an http request and update the code they JIT?


Replies

whstlyesterday at 11:46 PM

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)

show 1 reply
jshmrsnyesterday at 11:41 PM

Precisely. That has always been prohibited both by technical measures and by the App Store review guidelines. Especially on Apple, but also on Google Play / Android as well.

kccqzytoday at 1:32 AM

Doing so would require the app to have the business logic written in JavaScript. Apple only allows JIT’ing JavaScript using JSC.

show 1 reply