Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Develop iPhone app without a Mac? [duplicate]

Possible Duplicates:
How can I develop for iPhone using a Windows development machine?

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:

  • 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

Here's my thinking:

  • jailbreak the iPhone
  • install Ruby + Sinatra on the iPhone
  • write the app using Sinatra, hitting a database (SQLite?) on the iPhone

To access the app on the iPhone:

  • 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.

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?

like image 556
Dave Avatar asked Jun 25 '09 00:06

Dave


People also ask

Can you make an app for iPhone without a Mac?

You cannot develop iOS apps without a Mac computer, but you can set up CI/CD to handle building and publishing!

Can you make a duplicate of an app on iPhone?

Creating a duplicate copy of an app icon is easy. Find the app in the App Library, then drag a new copy of it onto your Home Screen: Swipe to the App Library at the right edge of all your Home Screens. Look through the various folders or use the Search bar to find the app you want to duplicate.

Do I need a Mac for app development?

You absolutely need Intel Macintosh hardware to develop iOS apps. The iOS SDK requires Xcode and Xcode only runs on Macintosh machines.

How do I run Xcode without a Mac?

Given that Xcode works only on macOS, a solution to get Xcode on Windows would be to install macOS on a Windows PC by means of a virtualization app such as VMware or VirtualBox. Using a virtualization platform provides users with the full functionality of Xcode on your Windows machine.


2 Answers

What you have described is a viable solution, however you should consider using the open toolchain for the iphone.

You don't need a mac then, only need to jailbreak the phone to make sure your app will work.

For all those who say it can't be done, this was the only way to make Apps for the iphone before the SDK was out :)

Also if you are after a guide to using the open toolchain then I highly recomend this book

like image 41
hhafez Avatar answered Sep 22 '22 14:09

hhafez


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

The answer is apparently no.

You absolutely need an Intel Mac of some description.

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).

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.

Lots of people recommend picking up a secondhand Intel (remember, must be Intel!) Mac Mini as the cheapest "port of entry".

like image 55
Jeff Atwood Avatar answered Sep 25 '22 14:09

Jeff Atwood