The Apple iPhone 8 release date is still a few weeks away but that doesn’t mean that it has stop all the rumors and leaks spilling further details regarding Cupertino’s upcoming flagship smartphone.

The Apple iPhone 8 new design – as well as a slew of never-before-seen features – have surfaced in new code distributed by none other than the Apple company itself. But how did the most valuable tech firm accidentally or intentionally leak its own classified secret?

There have been unending slew of leaks and rumors regarding what we can expect when the upcoming iPhone 8 is finally launched — a radically redesigned edge-to-edge OLED display sans physical home button, a 3D facial recognition technology, an augmented reality features and wireless charging.

New developer firmware code distributed by the company has unveiled a number of new information about the forthcoming iPhone 8 – and even leaked the final design of the new flagship smartphone.

The firmware for the upcoming Apple HomePod, which was first unveiled during the 2017 World Wide Developers Conference (WWDC), includes a plenty of details and references to impending iPhone 8.

This week, developer Steve Troughton-Smith discovered the reference to 3D Face ID system within the scads of code. The feature, according to the developer, can enable iPhone 8 users to unlock their device with a glance. He discovered the code as part of a batch of code that refers to something new dubbed as “BiometricKit.”

Whether Face ID will replace Touch ID security system – as was speculated earlier this year – remains to be known.

Alongside the new biometric unlocking process, Troughton-Smith also exposed a vector that appears to confirm the new radical design of the next-iteration Apple iPhone 8.

The vector resembles the simple render Apple uses to represent devices within the sidebar on macOS Finder windows. Additionally, the new vector image appears to confirm the edge-to-edge nearly bezel-less OLED screen display of the iPhone 8.

It appears to show the nearly edge-to-edge AMOLED display – rumored to measure about 5.8-inches – without the conventional physical Home Button and a small notch in the top bezel for the front-facing camera, speaker and a number of sensors.

But how could this happen? How did the notoriously secretive Apple manage to publish its own top secrets?

Apple enthusiast John Gruber has published a post on its famous blog Daring Fireball that reveals how this tremendous mistake might have even happened.

“How in the world does something like this happen? My understanding is that Apple is (or at least was) on the cusp of a widespread deployment of prototype HomePods to employees,” Gruber writes.

“Someone prepared an over-the-air software update and because it was intended to be distributed only to Apple employees, the OS was compiled without all the usual flags set to omit code that pertains to unreleased hardware. (Kind of makes sense, insofar as HomePod itself is unreleased hardware.), he added.

”Building the OS without those flags set may not have been a mistake. But distributing it via a world-readable server was.”

The technology mammoth has the ability to lockdown and secretly camouflage specific features within its own firmware code – allowing it to materialize on features internally that never become visible in beta software distributions to developers.

The HomePod software, however, did not include any of these strategy since the beta software program was for an unreleased consumer electronic product and therefore should never have been distributed to developers outside the Cupertino campus. And pointing at new features slated to debut along with the iPhone 8, the HomePod firmware code also contradicted a number of notable rumors about the iPhone 8.

The developer further suggests, according to HomePod codes, that there is no indications suggesting “ultra-sound” under-display Touch ID sensor, which is the cutting-edge technology that earlier patents and speculations had pointed towards.

However, one of the biggest questions has been when prospect customers will be able to actually purchase the new iPhone 8.

The iPhone 8 has the potential to make the Cupertino-headquartered tech giant the world’s first $1 trillion company so many are riding on it and now industry analysts believe they have spotted a major indication on timing.

Given that the patrons upgrade their smartphones roughly about every 2.7 years, Tim Cook-led firm is expecting 2017 to offer a “supercycle” of sales not seen since the 2014 release of the iPhone 6.

With that being said, such an achievement would help redeem the reputation of CEO Tim Cook, who has been heavily criticized due to lacking vision and strategy since taking over Apple from visionary founder Steve Jobs six years ago.

Having already reported an impressive profit and revenue growth in its just-completed third quarter earnings call conference, Apple said it expected to pull in $49 billion to $52 billion, of sales for the upcoming quarter — quite bigger than Wall Street’s $49.2 billion average forecast for the company.

Analyst at RBC Capital Markets Amit Daryanani said that the Apple’s confidence also suggests its drastically redesigned iPhone 8 will be released shortly after Apple’s annual smartphone launch event in September and not delayed as suggested.

Analyst T. Michael Walkley is forecasting Apple to surpass the previous “supercycle” and will ship roughly around 248 million units. “We believe the hype and speculation is greater than any previous iPhone product cycle for iPhone 8 with almost daily leaks and rumors regarding the next iPhone,” Walkley said.

With the Apple iPhone 8 expected to be priced at around $1600 price tag, the analyst said he expected the improved iPhone 7S and iPhone 7S Plus to remain a popularly alternative choices. “We do not expect demand for these legacy models to fall as quickly as in prior launch cycles,” Walkley added.