You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "webchick (JIRA)" <ji...@apache.org> on 2013/11/27 05:29:35 UTC

[jira] [Commented] (CB-5497) [TypeError: Cannot call method 'split' of undefined] when adding ios platform

    [ https://issues.apache.org/jira/browse/CB-5497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833441#comment-13833441 ] 

webchick commented on CB-5497:
------------------------------

Tried with the -d param:

$ cordova platform add ios -d
cordova library for "ios" already exists. No need to download. Continuing.
Checking if platform "ios" passes minimum requirements...
Checking iOS requirements...
Running "xcodebuild -version" (output to follow)
xcrun: Error: could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)

TypeError: Cannot call method 'split' of undefined
    at /usr/local/lib/node_modules/cordova/src/metadata/ios_parser.js:78:27
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)

---
This probably makes sense; my XCode is located at /Applications/XCode, not /Volumes/Xcode/.

> [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)