Build failure in cordova subprocess:

I have created a simple app to display a google map. I get a failure when in the cordova sub process. If I run just the subprocess: “cordova build ios” I get the same error

Building project: /Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/FOFProto.xcworkspace
	Configuration: Debug
	Platform: device
User defaults from command line:
    IDEArchivePathOverride = /Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/FOFProto.xcarchive

Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/build/device
    SHARED_PRECOMPS_DIR = /Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/cordova/build-debug.xcconfig':
    CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
    CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
    CODE_SIGN_IDENTITY = iPhone Developer
    ENABLE_BITCODE = NO
    GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
    HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
    OTHER_LDFLAGS = -ObjC
    SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

Non-system Ruby in use. This may cause packaging to fail.
If you use RVM, please run `rvm use system`.
If you use chruby, please run `chruby system`.
error: archive not found at path '/Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/FOFProto.xcarchive'
** EXPORT FAILED **

CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,FOFProto.xcarchive,-exportOptionsPlist,/Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/exportOptions.plist,-exportPath,/Users/wes/Documents/Dev2/ionic/FOFProto/platforms/ios/build/device'
    at cli.catch.err (/Users/wes/.nvm/versions/node/v10.12.0/lib/node_modules/cordova/bin/cordova:30:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Here is by iconic info:
"Ionic:

ionic (Ionic CLI) : 4.2.1 (/Users/wes/.nvm/versions/node/v10.12.0/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : browser 5.0.4, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 5 other plugins)

System:

ios-deploy : 1.9.4
NodeJS : v10.12.0 (/Users/wes/.nvm/versions/node/v10.12.0/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.0 Build version 10A255

I did try ‘rvm use system’, but that didn’t change anything. Any pointers or suggestions would be greatly appreciated.