[
https://issues.apache.org/jira/browse/CB-6120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Josh Soref reassigned CB-6120:
------------------------------
Assignee: Josh Soref
> `cordova platform` should not fail just because some platform is broken
> -----------------------------------------------------------------------
>
> Key: CB-6120
> URL: https://issues.apache.org/jira/browse/CB-6120
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.4.0
> Environment: OS X 10.9.2
> Reporter: Josh Soref
> Assignee: Josh Soref
>
> I don't have whatever magical stuff is required for iOS development.
> I ran `cordova-mobile-spec/createmobilespec.sh`
> I entered the `mobilespec` directory and did `cordova platform add
> blackberry10`
> I tried to do `cordova platform` to see a list of my platforms:
> mobilespec $ ~/Cordova/cordova-cli/bin/cordova platform
> Error: platforms/ios/cordova/version: Command failed with exit code 1 Error
> output:
> mobilespec/platforms/ios/cordova/version: line 33:
> mobilespec/platforms/ios/CordovaLib/VERSION: No such file or directory
> at ChildProcess.whenDone (cordova-cli/src/superspawn.js:112:23)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:735:16)
> at Socket.ChildProcess.spawn.stdin (child_process.js:948:11)
> at Socket.EventEmitter.emit (events.js:95:17)
> at Pipe.Socket._destroy._handle.onread [as close] (net.js:466:12)
> Here's a slightly more verbose indication of the failure on the iOS side:
> mobilespec $ sh -x platforms/ios/cordova/version
> ...
> + VERSION_FILE_PATH=.../platforms/ios/CordovaLib/VERSION
> platforms/ios/cordova/version: line 33: platforms/ios/CordovaLib/VERSION: No
> such file or directory
> + VERSION=
> Note that as a user, i don't care how many platforms are broken, I want a
> list of my platforms.
> The expected output is roughly:
> android (3.4.0-dev), blackberry10 (3.4.0), ios (broken)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)