[
https://issues.apache.org/jira/browse/CB-5497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833445#comment-13833445
]
Shazron Abdullah commented on CB-5497:
--------------------------------------
Hmm - do you have the Xcode installer mounted on your Finder?
It may have "registered" that app location when it was probably run from the
mounted volume accidentally.
What do you have when you run:
{code}
xcode-select -print-path
{code}
If it does not start with /Applications/Xcode like you mentioned, change it:
{code}
sudo xcode-select --switch /Applications/Xcode/Contents/Developer
{code}
> [TypeError: Cannot call method 'split' of undefined] when adding ios platform
> -----------------------------------------------------------------------------
>
> Key: CB-5497
> URL: https://issues.apache.org/jira/browse/CB-5497
> Project: Apache Cordova
> Issue Type: Bug
> Affects Versions: 3.2.0
> Environment: OS X 10.8.5, Node.js v0.10.22, Cordova 3.2.0-0.1.0,
> XCode 4.5.2 (4G2008a)
> Reporter: webchick
>
> Following the directions under
> http://cordova.apache.org/docs/en/3.2.0/guide_cli_index.md.html#The%20Command-Line%20Interface
> gives me:
> $ cordova create hello com.example.hello HelloWorld
> Creating a new cordova project with name "HelloWorld" and id
> "com.example.hello" at location "/Users/webchick/hello"
> $ cd hello/
> $ cordova platform add ios
> Checking iOS requirements...
> [TypeError: Cannot call method 'split' of undefined]
> Tried with sudo as well on the off-chance this was a permissions issue, but
> no dice.
--
This message was sent by Atlassian JIRA
(v6.1#6144)