So they discovered the way to do it the week before they launched? I've seen some terrible excuses for Apple's screw up's but that is just stupid.
So your saying have no testing or QA procedures anymore?
Get real.
Now they discovered probably about a year before launch. At which point they worked with parts manufacturers to make and refine the system you have. The finished products likely didn't start getting produced in a mass way until about May and since then they've been churning them out as fast as they can. This very common in the manufacturer or complex goods involving innovation, cars being the best documented example.
The reason it doesn't happen generally in computers is that computers have usually worked on a system where the parts are not custom to the system they are in, instead there is an open market and a shortage of a part expresses itself as a price surge for that part.