Metalloporphyrin-based CMP nanoparticles synthesized by the oxidative dimerization of terminal alkynes in the toluene-in-water miniemulsion possess native porosity, outstanding solution processability and uniform nanosized distribution. Also, they exhibit the sensitive color-switching ability for quantitative assay of gaseous SO2 by the noncovalent complex-displacement reaction at liquid-solid or gas-solid interfaces.