Develop with Ionic in iOS - need help

Hi,

I would like to develop for iOS as well as Android, and for that I need a Mac. I figured the best option for me would simply buy a used Mac on Ebay. The question is this:

With MacBook 10.7 Lion OS, can I develop with Ionic (using Xcode), emulate and upload my apps to the App Store? I’d like to make sure of that before I go ahead and purchase one.

Thank you very much. Hope it’s Okay that I posted it here.