You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2015/12/04 13:08:10 UTC
[jira] [Updated] (CB-10136) error in cordova prepare (Platform API)
[ https://issues.apache.org/jira/browse/CB-10136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-10136:
----------------------------------
Labels: PlatformApi cordova-ios-4.0.x (was: cordova-ios-4.0.x)
> error in cordova prepare (Platform API)
> ---------------------------------------
>
> Key: CB-10136
> URL: https://issues.apache.org/jira/browse/CB-10136
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Priority: Critical
> Labels: PlatformApi, cordova-ios-4.0.x
>
> Add this in config.xml:
> {code}
> <platform name="ios">
> <!-- ios restrictions -->
> <preference name="target-device" value="universal" />
> </platform>
> {code}
> Then run `cordova prepare`.
> You will get an error:
> "Error: Arguments to path.resolve must be strings"
> Log:
> {code}
> $ cordova prepare --verbose
> Executing "before_prepare" hook for all plugins.
> Searching PlatformJson files for differences between project vs. platform installed plugins
> No differences found between project and ios platform. Continuing...
> Generating config.xml from defaults for platform "ios"
> Wrote out iOS Bundle Identifier to "s.one"
> Wrote out iOS Bundle Version to "0.0.1"
> Error: TypeError: Arguments to path.resolve must be strings
> at Object.posix.resolve (path.js:439:13)
> at new pbxProject (/Users/shazron/Desktop/s/platforms/ios/cordova/node_modules/xcode/lib/pbxProject.js:17:26)
> at handleBuildSettings (/Users/shazron/Desktop/s/platforms/ios/cordova/lib/prepare.js:237:16)
> at updateProject (/Users/shazron/Desktop/s/platforms/ios/cordova/lib/prepare.js:163:12)
> at /Users/shazron/Desktop/s/platforms/ios/cordova/lib/prepare.js:47:16
> at _fulfilled (/Users/shazron/Desktop/s/platforms/ios/cordova/node_modules/q/q.js:787:54)
> at self.promiseDispatch.done (/Users/shazron/Desktop/s/platforms/ios/cordova/node_modules/q/q.js:816:30)
> at Promise.promise.promiseDispatch (/Users/shazron/Desktop/s/platforms/ios/cordova/node_modules/q/q.js:749:13)
> at /Users/shazron/Desktop/s/platforms/ios/cordova/node_modules/q/q.js:509:49
> at flush (/Users/shazron/Desktop/s/platforms/ios/cordova/node_modules/q/q.js:108:17)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org