Error: xcode-select: error: tool 'xcodebuild' requires Xcode

6.8k Views Asked by At

I am using Ionic 2. The app builds an Android apk successfully on Windows.

I am now trying to build it for iOS on OSX. When I run:

ionic build ios

I get the following:

enter image description here

Any advise appreciated.

1

There are 1 best solutions below

3
On

You need to configure xcode after installation:

Open xcode, go to > preferences > locations (tab) > command line tools (dropdown) > set latest version.

enter image description here