Ionic Package: xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

What does support say to these errors?

I didnt get any response to the mail that i sent

Hi @Sujan12, anything can be done from your end to get this checked. I have made mutiple follow ups through mail.But not getting any response. Please help.

1 Like

JUST AN UPDATE

I am done with everything possible from my end…

reinstalled npm
reinstalled ionic
reinstalled all packages

ionic serve is working fine

recreated all security certificates

recreated provisioning profiles

still getting same error

in ionic package build ios --profile profilename

Check dependencies
Provisioning profile “” doesn’t support the Associated Domains capability.
Code signing is required for product type ‘Application’ in SDK ‘iOS 10.3’

AND THE ionic info is

**cli packages: **

** @ionic/cli-utils : 1.13.1**
** ionic (Ionic CLI) : 3.13.2**

global packages:

** cordova (Cordova CLI) : 7.1.0**

local packages:

** @ionic/app-scripts : 3.0.0**
** Cordova Platforms : android 6.2.3 ios 4.5.2**
** Ionic Framework : ionic-angular 3.4.2**

System:

** Android SDK Tools : 25.2.5**
** Node : v6.11.0**
** npm : 5.5.1**
** OS : Windows 10**

Misc:

** backend : legacy**

I enabled the associated domain and got the success response finally… Thanks a ton to @jaydz

Apparently it’s just a matter of settings, just point to the actual folder where XCode is installed, for example:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Cheers

23 Likes

yes like @bettercaringdevelope says it’s seems to be an issue on xcode for ios?
not sure ?

Thank you , you saved my day…
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

its working for me …cheers…

2 Likes

Hello,
i have the same problem…
when i run ionic cordova build ios i see this…!!!


(node:28082) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

(node:28082) 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.


what’is the problem please??..Thank you

Me too, my error:

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

(node:19049) 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:19049) [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’ve tried multiple versions of

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

but to no avail.

My issue was solved!

The problem was that I had never actually ever opened XCode! (New computer lol). It installed some components upon its first open, then I ran:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

And it worked, yay

4 Likes

Worked for me. Thanks!

Thanks a lot.it’s worked for me.

Thank you very for this. even i was stuck in this and this helps me so again thank you very much

thousand kudos! is working on my side as well

It worked for me too!

worked like a charm. saved my day. >_<

it worked …thanks

Awesome, it worked for me perfectly

Wonderful, many thanks, still works on ionic v4.