General Motors and Shanghai Automotive Industry Corp on Thursday signed a deal for a fourth jointly-owned car factory in China as GM tries to catch up with Volkswagen.