Or you increase prices. Or a combination of the three.
I'm not aware of all the complex reason for why the following is the case, but my brother's mom (I know how odd that may sound) was able to rent an apartment when she was 18 working in fast food without tips. There is _no way in h-e-double-hockey-sticks_ that that could happen anywhere in America today. I'm not convinced that raising minimum wage is the solution -- it could be part of the problem. Models of human behavior and economics can get tricky and counter-intuitive. It is a hard nut to crack; I'll just stick to writing software. Now, if someone wants to pay me to make and become familiar with those models....
This is a simplistic example and assumes unlimited supply of labor, but it illustrates the point.
The result is that the unskilled end of the spectrum are too expensive in relation to their productivity. These are the ones who end up unemployed.
I am not an economist, but that is how I understand it.
That's not strictly true. If you have two programmers, one produces $80 in value per hour and the other only $40 in value per hour you can still afford to pay both $60/hr each. This happens all the time because worker productivity is uneven and some jobs are more important/impactful than others. The requirement that revenue exceed costs is only true in aggregate, so the effect of increasing low-wage employee cost is to reduce profits.
If you want an intelligent, fair-minded, and properly-researched account of economics at McDonald's see here:
http://www.bloomberg.com/news/2012-12-12/mcdonald-s-8-25-man...
To properly phrase your example, yes it is depend on "work", but work is dependent on revenue. If McDs needs 10 employees per shift where they generate $800, each employees total cost per shift cannot be more than $80, which works out to about $10 CTC (cost-to-company) per hour in an 8-hour shift.
If you now mandate that the worker salary MUST be $12 or higher than $12, McDs is losing money. So you either pray for an increase in business (sales), or cut costs (ie, fire people) and automate.
And lower-skilled jobs are easier to automate. It's easier to automate fast-food checkout by having (for example) iPads for people to place their orders, so your human workforce can just be the cooks at the back and the janitorial staff.