To use additional functions in your application, in iTunesConnect select your application and go to the function tab. Connect the built-in purchases, GameCenter. In XCode also do not forget to connect the necessary functions, in the Capabillities you will find what is available to you, connect, program and use!

Language Swift programming
Help tutorial swift for Xcode