title: Develop iPhone app without a Mac?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/22358/how-can-i-develop-for-iphone-using-a-windows-development-machine">How can I develop for iPhone using a Windows development machine?</a>  </p>
  </blockquote>
  
  <p>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:</p>
  
  <ul>
  <li>should run standalone on the iPhone (i.e. without network connectivity)</li>
  <li>would be perfectly acceptable with a GUI created using one of the iPhone Javascript libraries that are around</li>
  <li>will do some database IO to read and update data</li>
  <li>has no commercial value and will never be used by anyone else</li>
  </ul>
  
  <p>Here's my thinking:</p>
  
  <ul>
  <li>jailbreak the iPhone</li>
  <li>install Ruby + Sinatra on the iPhone</li>
  <li>write the app using Sinatra, hitting a database (SQLite?) on the iPhone</li>
  </ul>
  
  <p>To access the app on the iPhone:</p>
  
  <ul>
  <li>start the Sinatra app in the
  background (is this possible?)</li>
  <li>start a Safari browser session</li>
  <li>navigate to the Sinatra app at e.g. <a href="http://localhost:12345" rel="nofollow noreferrer">http://localhost:12345</a></li>
  <li>etc.</li>
  </ul>
  
  <p>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?</p>