Error (Xcode): Framework not found Pods_Runner

I'm trying to deploy my Flutter app to iOS. When I run flutter build ipa I get this error message:

Error (Xcode): Framework not found Pods_Runner

pod install executes without an error:

Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.

I tried the fixes in this question but they didn't help.

Here's the full error message:

Error output from Xcode build:
↳
    ** ARCHIVE FAILED **


Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/_r/0dhg_r457r97_vy_3y7k2_9r0000gn/T/flutter_tools.okmZBY/flutter_ios_build_temp_dirvbv8LS/temporary_xcresult_bundle

    ld: framework not found Pods_Runner
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order

    Result bundle written to path:
        /var/folders/_r/0dhg_r457r97_vy_3y7k2_9r0000gn/T/flutter_tools.okmZBY/flutter_ios_build_temp_dirvbv8LS/temporary_xcresult_bundle


Error (Xcode): Framework not found Pods_Runner


Encountered error while archiving for device.

flutter run --no-sound-null-safety

Error (Xcode): Framework not found Pods_Runner
 
 
Q