Apple is taking steps to protect the integrity of apps in this new AI frontier.