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


#8

I am still facing issue in this. The error also keeps on changing. Please find the different errors that i am getting

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

Error2
Source path does not exist: resources/ios/icon/icon-40.png

Error3
Unable to parse your provisioning profile. Please make sure the provisioning profile you’ve uploaded is valid.

Error4
Error Reading File: provisioning.plist

Error5(Recent)
=== BUILD TARGET ***** OF PROJECT ****** WITH CONFIGURATION Debug ===

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

** ARCHIVE FAILED **

The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/package/workspace/apps-291aa81f-31/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,******.xcworkspace,-scheme,******,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,******.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/package/workspace/apps-291aa81f-31/cordova/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/package/workspace/apps-291aa81f-31/cordova/platforms/ios/build/sharedpch


#9

What does support say to these errors?


#10

I didnt get any response to the mail that i sent


#11

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.


Ionic package build failed?
#12

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**


#13

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


#14

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


#15

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


#16

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

its working for me …cheers…


#17

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


#18

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.


#19

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


#20

Worked for me. Thanks!


#21

Thanks a lot.it’s worked for me.


#22

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


#23

thousand kudos! is working on my side as well


#24

It worked for me too!


#25

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


#26

it worked …thanks


#27

Awesome, it worked for me perfectly