Using xcode does require paying Apple, unless you've gotten your hands on a free copy of the OS and/or free Apple hardware somehow.