I’ve installed Xcode. Pretty sure you can write anything and install it on your own device, the restrictions are on distribution.