It happens. That is, in fact, the explicit point of controlled inflation. The layman just doesn't realize it.
Apple's cash is subject to the same effect
You lose value on liquid cash sitting around in a checking account equivalent to the rate of inflation (less interest, which is negligible); companies like Apple know this and keep most of their liquidity in inflation-hedged instruments rather than in checking accounts.
Leaving aside the fact that the economy is booming for wealthy companies like Apple, how Apple 'feels' is irrelevant. You're anthropomorphizing. It's a corporation, it doesn't feel anything (like for example, shame or compassion, emotions which can govern human behavior even without explicit regulation). Corporations have to be operated in the public interest---that's their whole original premise, though it seems most people have forgotten it.
However Apple has found a way to repatriate the money without paying tax whilst still claiming its money is offshore.
Look up 'Braeburn Hedge Fund' based in Nevada. They manage Apple's money by way of shell corporations and invest the cash in US stocks, bonds and other financial instruments.
The law should be tightened so that this kind of scenario is not allowed. Tricky to do but surely some clever lawyer can figure it out.