The maneuver you describe is equivalent to incorporating in Delaware (or Nevada, I suppose). You can compound your wealth in the low-tax environment, but you will pay taxes when you try to transfer it to yourself.
Just like Apple, in this case. Under the current legal regime, they have successfully deferred taxes, not evaded them. It's the same way I carefully evade sales taxes by saving some of my money instead of spending every paycheck.