OpenAI countersued Apple on Friday, accusing the company of “unlawful, tortious, and unfair business practices” in a dispute over trade secrets and the companies’ competing efforts to develop AI-enabled devices.

The lawsuit, filed in Northern California federal court, says Apple encourages employees to store work files on personal iCloud and iMessage accounts, making it difficult to separate work and personal information across devices. It says employees who tell Apple they are leaving for a competitor are asked to leave the same day, preventing “the departing employee from working with Apple to separate out Apple confidential information and messages from personal information.”

OpenAI’s complaint alleges that the policy creates “trapdoors” that let Apple “to accuse former employees of trade secret theft.” It also accuses Apple of pressuring vendors not to work with OpenAI and says Apple filed its lawsuit because it is struggling to compete, arguing that the iPhone maker “has struggled to incorporate innovative AI capabilities into its previously popular products.”

The dispute began in July, when Apple sued OpenAI and two former Apple employees who had joined OpenAI, accusing them of stealing trade secrets to develop an AI device. OpenAI disputed the allegations and, months later, filed a court document accusing one of its former employees of taking device-related trade secrets to Apple.

Apple did not immediately respond to a request for comment. The company has previously said it found no evidence supporting OpenAI’s trade-secret theft allegations. Apple said it has strict policies to ensure new employees do not use confidential information from previous workplaces and would work with OpenAI to remediate any of its information found on Apple’s systems.

OpenAI declined to comment beyond the contents of Friday’s lawsuit.

OpenAI announced a project last year with Apple’s former design chief to build devices intended to bring smartphone users into the age of AI. Apple, meanwhile, has been racing to catch up with tech rivals on AI, beginning with a major revamp of Siri. Amazon, Meta, Google and a host of start-ups have also sought a place in the AI gadget race.

The complaint says OpenAI is developing “new, much-anticipated AI-enabled personal electronic devices—threatening to outcompete Apple on what Apple views as its own turf.” Both companies have requested a jury trial.