The adsorption of gases such as CO2 requires the presence of an empty pore. The pore structure can be evacuated using a different method. The process is called an activation step that aims to remove all occluded solvent molecules. The activation with low boiling point solvents such as water or ethanol removes solvents such as DMF or DEF present in the pore of the materials. The solvent exchange method requires soaking the materials in a solvent such as ethanol or methanol for a long time to ensure the full exchange of the occlude solvents. The solvent exchange process may cause damage to the ZIF crystals due to the high mass transfer rate. Thus, it is highly recommended to use a solvent mixture of DMF-methanol to activate ZIF78-based membranes to slow down the diffusion rate of DMF . The process requires several steps. For example, the solvent exchange process can be started by immersing the membranes in a low methanol content of DMF-methanol solvent to reduce the concentration gradient of DMF. Further steps were also performed by increasing the methanol content and ended with using pure methanol at the end of the activation process . The solvent exchange with a highly volatile solvent such as methanol enables the fast removal via the drying process . The synthesis procedures such as electrospray deposition simultaneously synthesize and activate ZIF-based membranes for ZIF-7 and ZIF-8 membranes.