Deductions & credits

From Pub 514:

Joint return. If you file a joint return, you can claim the credit based on the total foreign income
taxes paid or accrued by you and your spouse.

 

Thus it doesn't matter whose name appears on  form 1116.