I sync'ed twice for my iPhone 4S and my iMac, but it still asked me to transfer purchased content to my Library?
Follow the steps in this Apple support page. This page goes through the steps to ensure that iTunes on the target computer is authorized, and the steps to transfer are:


Connect your device to the computer. 
Select the Transfer Purchases menu option



You should then be able to upgrade your iPhone without any additional prompts.