Error: xcode-select: error: tool 'xcodebuild&#

2020-07-17 16:40发布

问题:

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:

Any advise appreciated.

回答1:

You need to configure xcode after installation:

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