Xcode Fun Recipe
For fun with Xcode, follow these steps:
- Read a bug report
- Fix the bug
- Build
- Test
- Notice that bug is still present
- Spend 30 to 60 minutes in the debugger trying to work out why the bug is still present
- Discover through low-level debugger chicanery that Xcode is running the old code, not the fixed code
- Inspect the build log and confirm that Xcode did compile the modified file containing the bug fix
- Scratch head, baffled
- Clean
- Build
- Test
- Confirm that bug is indeed gone
- Curse Apple for wasting your time at Step 6 above
- Forget about filing a bug report because the likelihood of isolating a reproducible test case for a bizarre bug like this must be close to nil
- Vent frustrations by writing recipe for weblog
Update: 7 April 2006
Jonathan Rentzsch writes of his deep-rooted friendship with Xcode’s "Clean All" button in his post, "Double-Broom: LIVE IT". Jonathan says he’s clicked on the double-broom button almost as often as he’s clicked on the build button itself. I wish it weren’t so, seeing as the for the project I’m working on right now there’s a five-fold difference between a clean-then-build (6.5 minutes) and a build-without-clean (1.5 minutes)…