The present invention pertains to: a method for producing a
gas barrier film that includes at least a base that is formed of a
synthetic resin, and a
gas barrier layer that is formed on the base, the method comprising a step 1 and 2 below; and an electronic member or an optical member that includes a
gas barrier film obtained by the method. In the gas barrier film obtained by means of the present invention, a problem of adhesion failure between the gas
barrier layer and the base
dose not occur even when the gas barrier film is subjected to high-temperature / high-
humidity conditions. [Step 1] that applies a
silicon-based
polymer compound solution that includes a
silicon-based
polymer compound and an
organic solvent to the base to obtain a film of the
silicon-based
polymer compound solution, and dries the film by heating to form a layer that includes the silicon-based polymer compound, the base having a gel fraction of 70% or more and less than 98% when immersed in the
organic solvent at 23°C for 72 hours; [Step 2] that subjects the layer that includes the silicon-based polymer compound to a
plasma treatment to form the gas
barrier layer.