Fuck Xcode

Two years ago, Brent Simmons introduced ded: a handy little alias to deal with Xcode quirks

alias ded='rm -rf ~/Library/Developer/Xcode/DerivedData'

It has been useful, but since recently it was not enough. Sometimes, Xcode will complain about not being able to use the simulator, even if it’s not running.

Screen Shot 2014-10-15 at 14.02.21

Or things will just fail randomly and often, leading to frustration and anger.

Eventually, ded was not enough, so here’s my replacement:

alias fuckxcode="pkill -9 -i 'ios simulator|xcode' && rm -rf ~/Library/Developer/Xcode/DerivedData && open http://www.calm.com/breathe"

And I’ll quote Brent again on Bugs:

In the old days, programmers spent hours and days and weeks working very hard, and sometimes brilliantly, on difficult things that no one had ever done before.

These days, programmers spend hours and days and weeks working very hard, and usually unsatisfactorily, on getting around bugs in their platform.

iCloud backup is not enough as an iOS developer

Not enough storage
Why Apple, why?

More often than not, I find this alert greeting me: I’ve reached my iCloud storage limit again.

You get 5GB free, but you share those for all the devices tied into your Apple ID. In my case, here’s the list:

  • 32GB iPad mini – testing device, but used for reading, browsing, videos,… while not working
  • 32GB iPhone 4S – main phone so far
  • 32GB iPhone  5 – next main phone, used to test the iOS7 betas this summer
  • 8GB iPod 4G – testing only
  • MacBook Pro

That’s not counting the older devices I never use anymore.

Backups don’t include the OS or the installed Apps, but the rest of the data can easily surpass 5GB with this many devices. You can opt to not backup some parts like your Camera Roll or iBooks, but then what’s the point of backing up. The other option is to pay for more storage.

iCloud storage plans
iCloud storage plans

I don’t think the storage plans are that expensive (although they are, compared to Dropbox and others), but considering I roughly buy a new iPhone and iPad each year, that’s over $1000 for Apple. If you renew your computer every 2-3 years, duplicate that (those new retina MacBooks are expensive). Throw in another $100 for the developer program, although that’s peanuts compared to the hardware cost.

It’s not crazy to think Apple could offer you an extra 5GB for each new device. Even expiring the extra space after a couple of years would be enough.

Then again, a lightning cable is more expensive than the 10GB plan.

Call me fanboy…

Call me fanboy if you must, but I’ve had iPhones since I could get my hands on a 2G model, and:

  • 2G: dropped it numerous times over the years, not a single scratch on the screen
  • iPhone 4: dropped it 2 hours after purchasing it, got a barely visible dent in the screen
  • iPhone 4S: fell a few times from the night stand… nada. No scratches

Dropped a month old Galaxy S3…

In my defence I’ll say with such a huge screen is sometimes difficult to get a proper grip on the phone while trying to tap the corners of the screen, where the buttons usually are. What happened to Fitt’s law?