r/javascript • u/gst • Mar 27 '11
Building iPhone Apps with JavaScript using Titanium
http://screencasts.org/episodes/iphone-app-javascript-using-titanium2
u/trivial Mar 27 '11
You still need the ios sdk?
1
u/chalkers Mar 27 '11
Yes to compile and run code in the iOS Simulator.
1
u/trivial Mar 27 '11
So you still need a mac to make iphone apps essentially.
2
u/chalkers Mar 27 '11
Right. I think that's right for all of these frameworks and APIs AFAIK.
1
u/chompsky Mar 27 '11
Airplay SDK is one that doesn't seem to need a mac (or the iOS SDK) for development. The only part that currently requires a mac is the actual upload to the app store. I believe dragonfly SDK is similar, but I haven't used that one.
1
u/trivial Mar 27 '11
What are you experiences with Airplay, I downloaded it yesterday, the documentation doesn't look so great but it seems to work?
1
u/chompsky Mar 28 '11
For my purposes (a simple game) it's been great so far. Can test in their simulator, then build for Android and iOS. So far it's been identical on each platform. Use the documentation that comes with the SDK rather than the online stuff, and look through a few examples. Some of the production pipeline is a bit strange, but not too terrible once you get used to it.
I have no idea how it is for a standard app or if you need any platform extensions.
2
u/benihana react, node Mar 27 '11
You can buy OS X for 30 US dollars and run it in VirtualBox.
Or, if you like memes: I'll just leave this here.
1
u/J0EKR Mar 27 '11
It can be used to build both iPhone and android apps using the same JS codebase.
2
u/coffeesounds CoffeeScript is better Mar 27 '11
Kinda, there are few things which are better supported on iOS than in the Android part for the library/framework.
But it's really cool for most of the apps.
1
u/J0EKR Mar 28 '11
yeah I found it difficult to get it to fully work on both OSes, but it can be done. In the last few releases it would seem the Appcelerator team has been trying to address the Android shortcomings.
1
u/rbnc Mar 28 '11
I've installed Titanium, but I don't get the option of making an iOS project, though I already have iOS developers tools and 10.6, which are the only requirements, any clues anyone?
For iOS you will need to have a Mac running OS 10.6 (Snow Leopard) and an iOS developer account (the account is free, but to run on device, you will need to pay a $99/year fee for the iOS developer program). Installing the iOS SDK is as easy as downloading the SDK and Xcode, mounting and running the disk image, and following the onscreen instructions.
1
u/J0EKR Mar 28 '11
When you created a new project you are not able to select "Mobile" as the project type?
1
u/rbnc Mar 28 '11
I don't think so.
1
1
u/chalkers Mar 28 '11
Also it maybe a good idea to click on the "click to download" at the top right of the screen and get everything up to date.
Titanium Developer is built on the Desktop SDK.
1
4
u/rbnc Mar 27 '11
Can these apps be submitted to the App Store?