OpenAI countersued Apple on Friday, alleging that the iPhone maker engaged in the same kind of trade secret theft it accused the ChatGPT provider of this summer.