Styles would join Florence Pugh and Chris Pine who signed on earlier this year. Wilde has a key supporting role onscreen.
Although little is known about the movie's plot, Don't Worry, Darling is set in an isolated, utopian community in the 1950s California desert. Katie Silberman wrote the screenplay based on a spec script by Shane and Carey Van Dyke.
Catherine Hardwicke is executive producing the film alongside Shane and Carey Van Dyke. Wilde and Silberman will produce along with Roy Lee and Miri Yoon of Vertigo Entertainment. Richard Brener, Daria Cercek and Celia Khong will oversee the project for New Line.
While Styles' attachment to anything draws appeal to the project, insiders say Warner Bros execs have always been looking for that next thing after being blown away by his acting chops in Dunkirk. Sources add after impressing Wilde and Pugh during an initial meeting, the feeling was mutual to get Styles to sign on to the project.