There's a thing called Fair Use that probably applies here. It allows you to use a copyrighted work for your own purposes as long as you paid for one copy. If Apple decided to enforce their EULA agreement via lawsuit, they might lose given the history of fair use. There is legal precedent I believe, (IANAL) that enables someone to reverse-engineer a product, although it is, like all copyright issues today, seriously threatened by pending legislation.
It's a grey area. A license may be a contract, but it is not a law.
We now return you to your regularly scheduled ennui.
mango