No profiles for 'com.angularfire.appname' were found: Xcode couldn't find any iOS App Development provisioning profiles matching

I keep getting an error running:
sudo ionic cordova build ios
or
sudo ionic cordova build ios -allowProvisioningUpdates
or
sudo ionic cordova build ios -allowProvisioningUpdates --buildFlag="-UseModernBuildSystem=0"

It was previously working and stopped all of a sudden.

note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: No profiles for ‘com.angularfire.appname’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.angularfire.appname’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target ‘Project Name’)

** ARCHIVE FAILED **

xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.