A method for producing a urinary catheter comprises the steps: providing a tubular catheter shaft (3)having an axially extending lumen therein; thermoforming an end of the tubular catheter shaft (3) into a closed end (51); inserting said closed end of the tubular catheter shaft into an injection mold cavity; and injecting thermoplastic polymer material into the mold cavity to form a tip (52) on the thermoformed end (51) of the tubular catheter shaft (3). Hereby, a very effective method is obtained, forming securely attached tips. Alternatively, an end of the tubular catheter shaft (3) with a non-closed opening may be inserted into the injection mold cavity; and thermoplastic polymer material be injected into the mold cavity to form a tip (52) on the end (51') of the tubular catheter shaft (3), whereby the injecting is controlled so that a limited amount of thermoplastic polymer enters into the lumen.