Will the App Store reviewers allow scripts downloaded as text, if it is parsed via WebKit? According to Apple allows hot code push in mobile apps, by Alice Yu in October 2014, the App Store reviewers allow code to be downloaded and run as long as it is:


Not executable code, only interpreted.
Downloaded and run by Apple's Webkit.
A small change i.e doesn't change the purpose of the app. 


These conditions have been used as a loophole by frameworks such as Meteor, Cordova/Phonegap &amp; even the likes of Cocos2djs. While Meteor &amp; Cordova are based on the iOS webview, they are downloaded and run via webkit, but Cocos2djs is based on spidermonkey and has the ability to update game content and scripts via Cocos2djs' "Asset Manager" i.e not webkit (webview).

So, what if code/scripts in languages other than javascript such as ruby, python or lua were sent as a "string" in a JSON file to be parsed WITHIN webkit (webview) and then passed to the interpreter to be executed?
Would apple allow this as it is, 


Only interpreted code/scripts. 
Downloaded and INITIALLY run by Apple's Webkit before being sent to an interpreter for further execution. 
Making changes that do not change the purpose or intent of the app.
Apple's review team will reject your app if it looks capable of downloading executable code. They have erred on the side of rejecting apps that legitimately look like they will only even "interpret" the code since Apple stands far more to lose when third parties discover this path to executing code and inject the code between your web server and your app.

The stakes are too high - so you'll want to be very careful that you understand the risk to your app if you include this functionality.

The briefs app - which was submitted to the app store in Late 2009 I believe, was hung up in this "what is the difference between interpreted code, downloadable game data (think new levels for a game), executable code" review state until April 2013


http://blog.robrhyne.com/post/659211315/almost-on-the-app-store
http://iphonedevelopment.blogspot.com/2010/08/briefsapp.html
Wireframe iOS design apps for iPad?


Clearly, there are far more apps on the store that use interpreters so your path to approval is likely to be smoothed by the efforts and pain of the pioneers that got Apple used to the idea that they can ensure interpreted code and configuration doesn't turn into executables.