Error 65 with cordova cli 9

I’ve been trying to update my project to match all the versions on AppFlow and I think I’m close but I’m getting an error 65 when trying to build/launch the emulator for iOS. This happens regardless of the setting of the “use old build system” flag.

Here’s error (related to the linker looks like):

[cordova] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[cordova]
[cordova] ** BUILD FAILED **
[cordova]
[cordova]
[cordova] The following build commands failed:
[cordova] Ld build/emulator/ServiceMinder.app/ServiceMinder normal x86_64
[cordova] (1 failure)
[cordova] Command finished with error code 65: xcodebuild -workspace,ServiceMinder.xcworkspace,-scheme,ServiceMinder,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/john/Projects/ServiceMinder.App.Mobile/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/john/Projects/ServiceMinder.App.Mobile/platforms/ios/build/sharedpch,-UseModernBuildSystem=0
[cordova] xcodebuild: Command failed with exit code 65
[cordova] Error: xcodebuild: Command failed with exit code 65

And here’s my ionic info:

Ionic:

Ionic CLI : 5.0.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.3
@ionic/app-scripts : 3.2.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 7.1.4, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic 3.1.3, cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 12 other plugins)

Utility:

cordova-res : not installed
native-run : 0.2.4

System:

Android SDK Tools : 26.1.1 (/Users/johndkeene/Library/Android/sdk)
ios-sim : 8.0.1
NodeJS : v10.15.1 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

this would help you

Thank you – I think the solution for me was to remove and add the ios platform. That surfaced another issue which I’m researching.

Executing script found in plugin cordova-plugin-googlemaps for hook “before_platform_add”: plugins/cordova-plugin-googlemaps/src/ios/check_sdk_version.js

Using “requireCordovaModule” to load non-cordova module “q” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.

CordovaError: Using “requireCordovaModule” to load non-cordova module “q” is not supported. Instead, add this module to your dependencies and use regular “require” to load it.