开发没有Mac的iPhone应用程序? [英] Develop iPhone app without a Mac?
问题描述
我正在为我妻子的手机建立一个iPhone应用程序,但我不想购买Mac作为一次性工作的开发平台。应用程序:
I'm looking to build an iPhone app for my wife's phone, but am not interested in buying a Mac as a development platform for a one-off piece of work. The app:
- 应该在iPhone上独立运行(即没有网络连接)
- 将是完全可以接受使用其中一个iPhone Javascript库创建的GUI
- 将执行一些数据库IO来读取和更新数据
- 没有商业价值,永远不会被其他人使用
- should run standalone on the iPhone (i.e. without network connectivity)
- would be perfectly acceptable with a GUI created using one of the iPhone Javascript libraries that are around
- will do some database IO to read and update data
- has no commercial value and will never be used by anyone else
这是我的想法:
- 越狱iPhone
- 在iPhone上安装Ruby + Sinatra
- 使用Sinatra编写应用程序,点击数据库iPhone上的(SQLite?)
要在iPhone上访问该应用程序:
To access the app on the iPhone:
- 在
背景下启动Sinatra应用程序(这可能吗?) - 启动Safari浏览器会话
- 导航到例如Sinatra应用程序 http:// localhost:12345
- 等。
- start the Sinatra app in the background (is this possible?)
- start a Safari browser session
- navigate to the Sinatra app at e.g. http://localhost:12345
- etc.
这似乎是一种奇怪的方法,但我想不出一种更简单的方法来编写独立的iPhone应用程序而无需购买Mac。有没有更好的方法呢?
This seems like a strange approach, but I can't think of a simpler way of writing a standalone iPhone app without buying a Mac. Is there a better way of doing this?
推荐答案
我能找到的唯一可靠信息是始终优秀的MetaFilter
The only reliable info I could find is at the always-excellent MetaFilter
http://ask.metafilter.com/110466/Anyway-to-develop-iPhoneiTouch-apps-without-investing-in-a-Mac
答案显然不是。
您绝对需要一些描述的Intel Mac。
整个iPhone构建过程在XCode中根深蒂固,无法在其他地方构建;我知道的唯一其他Objective-C编译器是gcc,它不支持任何Apple对该语言的添加(也不支持他们的库)。
The entire iPhone build process is too deeply ingrained in XCode to build elsewhere; and the only other Objective-C compiler I know is gcc, which doesn't support any Apple's additions to the language (nor their libraries).
并且,直接反对对于人们上面所说的,Objective-C绝对是我最喜欢的原生语言编译语言。优雅,小巧(只有C的一些变化),后期绑定,动态,直白。这就是C ++应该是什么。
And, in direct opposition to what people are saying above, Objective-C is absolutely my favorite native, compiled language. Elegant, small (only a few changes from C), late-binding, dynamic, straightforward. It's what C++ should have been.
很多人建议选择二手英特尔(记住,必须是英特尔!)Mac Mini作为最便宜的入境口岸。
Lots of people recommend picking up a secondhand Intel (remember, must be Intel!) Mac Mini as the cheapest "port of entry".
这篇关于开发没有Mac的iPhone应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!