Apple 不允许在 iPhone 上使用编译器或解释器,但从技术上讲,您没有任何理由不能设置基于服务器的编译器,该编译器也允许用户运行其编译的应用程序。事实上,有多个网站已经做到了这一点,但编写一个指向其网站或使用其服务的应用程序并不是一个好主意;您需要设置自己的服务。
并非不可克服,但我会转向其他应用程序想法。
Apple doesn't allow for compilers or interpreters on the iPhone, but there technically isn't any reason you can't setup a server based compiler, that also allows users to run their compiled apps. In fact, there are multiple sites that already do just this, but it wouldnt be a good idea to write an app that points to their site or uses their services; you would need to setup your own service.
Not insurmountable, but I would move onto other app ideas.
Given Apple's snarly attitude about language interpreters running under iOS you're better off coding this as service that runs on a remote server, maybe with the editing part on the phone or tablet.
One significant remaining restriction is that these apps may not load scripts from outside the app, for example, from Dropbox or iTunes file sharing. (This is part of Apple's efforts -- along with code signing and 100% app review -- to minimize malware.) Such apps are allowed to have an editor that allows the user to copy and paste code into the editor from outside the app.
As far as I know, there aren't any apps for compiled languages such as FORTRAN.
Meanwhile, FORTRAN compiler is available for iOS only as a jailbroken application.
[Disclaimer: I am the author of Python Math. Apple removed it from the store for a short time until I removed iTunes file sharing and "Open In..." capability. I then added a script editor.]
发布评论
评论(3)
Apple 不允许在 iPhone 上使用编译器或解释器,但从技术上讲,您没有任何理由不能设置基于服务器的编译器,该编译器也允许用户运行其编译的应用程序。事实上,有多个网站已经做到了这一点,但编写一个指向其网站或使用其服务的应用程序并不是一个好主意;您需要设置自己的服务。
并非不可克服,但我会转向其他应用程序想法。
Apple doesn't allow for compilers or interpreters on the iPhone, but there technically isn't any reason you can't setup a server based compiler, that also allows users to run their compiled apps. In fact, there are multiple sites that already do just this, but it wouldnt be a good idea to write an app that points to their site or uses their services; you would need to setup your own service.
Not insurmountable, but I would move onto other app ideas.
鉴于苹果公司对在 iOS 下运行的语言解释器持严厉态度,您最好将其编码为在远程服务器上运行的服务,也许可以在手机或平板电脑上进行编辑部分。
Given Apple's snarly attitude about language interpreters running under iOS you're better off coding this as service that runs on a remote server, maybe with the editing part on the phone or tablet.
为了当前和未来的搜索,更新这个旧线程:
苹果在过去一年左右的时间里改变了他们的态度。目前有许多适用于 iOS 的解释器,包括 Lua 的解释器 (https:// itunes.apple.com/us/app/iluabox/id398073834?mt=8)和几个Python(https://itunes.apple.com/us/app /python-2.7-for-ios/id485729872?mt=8, http://itunes.com/apps/pythonmath)。
剩下的一项重要限制是这些应用程序可能无法从应用程序外部加载脚本,例如从 Dropbox 或 iTunes 文件共享加载脚本。 (这是 Apple 努力的一部分,以及代码签名和 100% 应用程序审查,以最大限度地减少恶意软件。)此类应用程序可以拥有一个编辑器,允许用户从应用程序外部将代码复制并粘贴到编辑器中。
据我所知,目前还没有任何针对 FORTRAN 等编译语言的应用程序。
同时,FORTRAN 编译器仅作为越狱应用程序适用于 iOS。
[免责声明:我是《Python Math》的作者。 Apple 将其从商店中删除了很短一段时间,直到我删除了 iTunes 文件共享和“打开方式...”功能。然后我添加了一个脚本编辑器。]
Updating this old thread for the sake of current and future searches:
Apple has changed their attitude over the past year or so. There are currently many interpreters available for iOS, including for Lua (https://itunes.apple.com/us/app/iluabox/id398073834?mt=8) and several for Python (https://itunes.apple.com/us/app/python-2.7-for-ios/id485729872?mt=8, http://itunes.com/apps/pythonmath).
One significant remaining restriction is that these apps may not load scripts from outside the app, for example, from Dropbox or iTunes file sharing. (This is part of Apple's efforts -- along with code signing and 100% app review -- to minimize malware.) Such apps are allowed to have an editor that allows the user to copy and paste code into the editor from outside the app.
As far as I know, there aren't any apps for compiled languages such as FORTRAN.
Meanwhile, FORTRAN compiler is available for iOS only as a jailbroken application.
[Disclaimer: I am the author of Python Math. Apple removed it from the store for a short time until I removed iTunes file sharing and "Open In..." capability. I then added a script editor.]