you must agree to the Xcode and Apple SDKs Agreement to use Xcode and production SDKs, which is a click-through when starting Xcode.
You must agree to an Apple Developer Program License Agreement to sign and distribute applications and to get access to pre-release SDKs.