I have been using ionic package build ios command for building my ionic ios app (with security profile). It was working fine till yesterday. Suddenly I started getting the error related to xcode
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
Please help me to resolve the issue. I tried removing and adding the platform. But it is still not not working.
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
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.
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’
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.
(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.