This research provides a facile and general pathway for increasing the durability of COF coatings and affinity to the polar AAs. The detection method based on the obtained fibers possesses high sensitivity, satisfactory reproducibility and good precision.