9
votes

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
Is your xcode-select pointing to correct directory ?May Rest in Peace
Have you tried (re)installing Xcode?Simon Wright
Sorry, I am new to OSX. How do I check where it's pointing? How do I reinstall?Richard
@Richard: Even after four years: Maybe you can accept the answer below? Or did it not work out for you?binford

1 Answers

41
votes

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