That's a sweeping statement.
The church advises ITS members to practice abstinence and fidelity within a relationship.
It's not talking to you or the Muslim bloke next door nor his Jedi practising room mate.
Interestingly Uganda an African nation with one of the best record in AID's reduction is also the African nation with the largest Catholic population in Africa.
So it wasn't the Pope (who I believe you would consider infallible?) who said that the use of the condoms would in fact help SPREAD HIV and AIDS? Oh hang on...