How can I know what apps are on my phone but not in my iTunes library?
This does not tell you which items are causing the issue, but it resolves the issue by transferring whatever is needed.  In iTunes, go to the File menu, devices, transfer purchases from ....