Error adding IOS


When i run ionic platform add ios

Running platform task...
Adding platform ios
Creating ios project...
Unknown option: n
Usage: head [-options] <url>...
    -m <method>   use method for the request (default is 'HEAD')
    -f            make request even if head believes method is illegal
    -b <base>     Use the specified URL as base
    -t <timeout>  Set timeout value
    -i <time>     Set the If-Modified-Since header on the request
    -c <conttype> use this content-type for POST, PUT, CHECKIN
    -a            Use text mode for content I/O
    -p <proxyurl> use this as a proxy
    -P            don't load proxy settings from environment
    -H <header>   send this HTTP header (you can specify several)

    -u            Display method and URL before any response
    -U            Display request headers (implies -u)
    -s            Display response status code
    -S            Display response status chain
    -e            Display response headers
    -d            Do not display content
    -o <format>   Process HTML content in various ways

    -v            Show program version
    -h            Print this message

    -x            Extra debugging output
Cordova can only run in Xcode version 4.6 or greater.
Error: /Users/will/.cordova/lib/ios/cordova/3.5.0/bin/create: Command failed with exit code 2
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:755:16)
    at Process.ChildProcess._handle.onexit (child_process.js:822:5)
Unable to add platform ios. Please see console for more info.

Can someone help me?


Same problem here… :frowning: I want to get started and the get started throws this error. I read something that it’s related to Xampp, but still no fix yet, tried everything I read on stackoverflow.


I end up figuring it shortly. I had to login to my ~/.bash_profile and comment out my xampp path and then exit all terminals and then relaunch terminal and run the command

$ ionic platform add ios