Is it possible to develop an app only for me and my friends?
Just make the app and upload it directly to my iPhone.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
It depends. If you have an Apple Developer account ($99 per year), you can create either a ad hoc distribution profile or use a development certificate. For more information on that, view here. Although it is called beta testing, it serves your purpose.
Now if you don't have an Apple Developer account, you can use jailbroken devices and Jailcoder. To use this method, follow the steps below:
An older video: http://www.youtube.com/watch?v=3NAm1MOGabw. Ignore the fact that it says Xcode 4. It works on Xcode 5.