Framework not found Alamofire

I have built a custom plugin which includes a custom framework that requires Alamofire. Building the project in xcode seems to be working fine, I can build and push the archive to a test device but I cannot build and push from the terminal. Has anyone had any experience with this? The only issue I see in the terminal is framework not found. I am using this command in the terminal:

cordova run ios --debug --device --nohooks --codeSignIdentity=“iPhone Developer” --developmentTeam=“exampleteam” --packageType=“development” --automaticProvisioning=true


ionic (Ionic CLI) : 4.2.1 (/Users/j.phillips/.nvm/versions/node/v8.12.0/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11


cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.4.0, ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1, (and 19 other plugins)


Android SDK Tools : 26.1.1 (/Users/j.phillips/Library/Android/sdk)
NodeJS : v8.12.0 (/Users/j.phillips/.nvm/versions/node/v8.12.0/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 9.4 Build version 9F1027a