I can't find my where the Unhandled Promise Rejection Warning error is coming from?

Hey All,

I’m trying to compile my code for ios and am getting the following error.

Generating intial manifest for Ionic Deploy...

Ionic Deploy initial manifest successfully generated.

(node:10305) UnhandledPromiseRejectionWarning: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

(node:10305) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:10305) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I’m really struggling to find where in my code this is occurring. Are there any tips on where i can look for more information or something I can search for?

When i run the app locally it works fine, no issue, just when i try ‘ionic cordova build ios --prod’

Happy to provide more information if that’ll help?