How To Fix Cordova MacOS X iOS Errors?

How To Fix Cordova MacOS X iOS Errors?

In macOS X, we’ll write an article about the IOS Cordova settings, which we know a little about.
If you haven’t installed Xcode on macOS X, you should get an error message like the one below;

cordova run ios
Error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools instance

To install XCode, you can visit and download the App Store or https://developer.apple.com/download/ as follows.

If you receive an error such as the following;

Error: ios-deploy was not found. Please download, build and install version 1.9.0 
or greater from https://github.com/phonegap/ios-deploy into your path, or do
'npm install -g ios-deploy'

As seen in the error message, you need to download the nodejs the package called ios-deploy.

sudo npm install -g ios-deploy

If you continue to have problems with this step, you should try installing as follows.

sudo npm install --global --unsafe-perm ios-deploy

I hope it has been a useful article.