The linked Forbes article is a great introduction, but unless I'm reading it wrong, it covers how Apple avoids US taxes on foreign sales, not US taxes on US sales. How exactly are they avoiding US taxes on US sales?
The US practice of taxing entities (corporations and people) on their global income based on citizenship instead of residency is just stupid, so Apple is in the legal and moral right here in my view.