AI advancements are key to Apple’s bid to catch up with its Silicon Valley peers.

At its annual developers' conference, Apple put the spotlight on new AI features, while highlighting security and child safety — and critiquing the company's AI competitors.

Siri debuted in 2011 and is accessible through the bulk of Apple's installed base of 2.5 billion devices, but hundreds of millions of consumers have been chatting with apps from…