No signing certificate "iOS Distribution" found

Trying to export an iOS package and it fails almost at the end. Logs below. Anyone knows what I am doing wrong or if this is a bug? (I just replaced certificate key with xxx).

/Users/vagrant/git/baseApp/platforms/ios/CordovaLib/CordovaLib.xcodeproj: warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.2.99. (in target ‘CordovaLib’ from project ‘CordovaLib’)
/Users/vagrant/git/baseApp/platforms/ios/Tiny Tales - Interactive stories for kids.xcodeproj: warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.2.99. (in target ‘Tiny Tales - Interactive stories for kids’ from project ‘Tiny Tales - Interactive stories for kids’)
/Users/vagrant/git/baseApp/platforms/ios/Tiny Tales - Interactive stories for kids.xcodeproj: error: No signing certificate “iOS Distribution” found: No “iOS Distribution” signing certificate matching team ID “xxx” with a private key was found. (in target ‘Tiny Tales - Interactive stories for kids’ from project ‘Tiny Tales - Interactive stories for kids’)
warning: Run script build phase ‘Copy www directory’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘Tiny Tales - Interactive stories for kids’ from project ‘Tiny Tales - Interactive stories for kids’)
** ARCHIVE FAILED **

xcodebuild: Command failed with exit code 65