This is one of the reasons I'm such a fan of Apple, despite all the misguided gruff they get here.
Apple always ships free (or near free) development tools with their systems. In the Apple II days it was built in to the ROMS. Nowadays on the Mac AppStore you can download Xcode, for free. (though at one point I think it was $5 for some reason.)
You can develop any mac apps you want, and run them to your hearts content, and you can develop iOS Apps and run them in the simulator (to distribute these apps via apple's store, you only need a $99 membership, which is pretty affordable, compared to the past when it cost $500-$5,000 for such suites of software.)
Its never been easier to be a hacker! And that isn't going to change anytime soon, at least on Apple systems.
(All the apple bashing on HN is from the google distortion field, it isn't reality.)
Hell, you can even develop iOS apps without using any apple tools and distribute them on the web to anyone, for free, and without any regulation by apple. You just have to use javascript and web technologies, but the full iOS UI is available, including things like touch tracking, gyroscope, GPS, etc.
People are so adamant that the iPhone is locked down that many people don't even know this, but it has been in iOS since day one-- in fact it was how Apple wanted everyone to develop apps originally (outside apple's control!) but people kept demanding native apps so apple created the appstore, and the curation of that is a consequence of not wanting malware. (Hard to write javascript malware.)