Ireland needed to surpass their previous highest successful chase, of 329 against England last year, for victory.
South Africa played better in the second half and debutant showed good pace to score in the corner, but out half failed to convert the try.
However, maintained their unbeaten record against on home soil by winning 26-17.