Can i build apps in old MAC min?

My app is almost ready, so now i have to worry about the apple thing…

so i’l buy a mac mini… just to build my apps.
the cheapest i can found was a mac mini 2006, with OS 10.5 leopard

so my question is… can i build the apps in this very old mac?
or the OS is too old for xcode…
many thanks