OpenAI filed a counter lawsuit against Apple in a US federal court on Friday accusing the tech giant of trade secret theft and resource blocking.