Use the development environments that Apple provides to create iPhone OS software. You can use Xcode to create applications, Dashcode to create web applications, and command-line tools if you prefer a traditional UNIX-based development environment. Everything you need is included in Xcode Tools and the iPhone SDK.