[
https://issues.apache.org/jira/browse/CB-10136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah resolved CB-10136.
-----------------------------------
Resolution: Fixed
> 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: [email protected]
For additional commands, e-mail: [email protected]