If you want to publish your stuff in the AppStore, or just install it on your own iDevice, you have to pay a yearly subscription fee.
Not true anymore [1]
[1] https://stackoverflow.com/questions/43932076/how-to-build-ap...
No you don't. XCode takes care of all of that automatically, I haven't had to hassle with provisioning profiles in years.