For more API details, please follow the technote.
Before getting started, setup your local.xcconfig in the project:
PRODUCT_NAME = Planet
DEVELOPMENT_TEAM = <your team id>
CODE_SIGN_STYLE = Automatic
APP_GROUP_NAME = com.sample.id.ShareData
ORGANIZATION_IDENTIFIER_PREFIX = com.sample.id