The outbreak and spread of COVID-19 have highlighted the urgent need for early diagnosis of SARS-CoV-2. Nucleic acid testing as an authoritative tool, is cumbersome, time-consuming, and easy to cross-infect, while the available antibody self-testing kits are deficient in sensitivity and stability. In this study, we developed competitive aptamer-based lateral flow devices (Apt-LFDs) for the quantitative detection of SARS-CoV-2 spike (S) protein. Molecular docking simulation was used to analyze the active binding sites of the aptamer to S protein, guiding complementary DNA (cDNA) design. Then a highly efficient freezing strategy was applied for the conjugation of gold nanoparticles (AuNPs) and DNA probes. Under optimal conditions, the linear range of the constructed Apt-LFDs was 0.1-1 μg/mL, and the limit of detection (LOD) was 51.81 ng/mL. The cross-reactivity test and stability test of the Apt-LFDs showed good specificity and reliability. The Apt-LFDs had recoveries ranging from 89.45 % to 117.12 % in pharyngeal swabs. Notably, the uncertainty of the analytical result was evaluated using a "bottom-up" approach. At a 95 % confidence level, the uncertainty report of (453.37±54.86) ng/mL with k = 2 was yielded. Overall, this study provides an important reference for the convenient and reliable detection of virus proteins based on LFDs.