The iPhone 4 leaked extensively and months before Apple released it. However, the company had hoped that a novel approach would minimise leaks, which involved passing prototypes as cheap fakes.
https://www.notebookcheck.net/Apple-created-a-Death-Star-iPhone-to-prevent-the-iPhone-4-from-leaking.578354.0.html