kas-kad edited a comment on issue #176: 🦟`cordova build ios` for a blank project fails with an unknown error URL: https://github.com/apache/cordova/issues/176#issuecomment-559003539 Ok, I removed cordova completely with `npm uninstall -g cordova`, after that `cordova build` started failing with `command not found`. Also, I uninstalled [email protected] manually with `npm uninstall -g cordova-ios`. After reinstalling [email protected] (`sudo npm install cordova -g`) I repeated the `cordova create HelloWorld`... ``` ➜ ~ cordova create HelloWorld Creating a new cordova project. ➜ ~ cd HelloWorld ➜ HelloWorld cordova platform add ios Using cordova-fetch for cordova-ios@^5.0.0 Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: io.cordova.hellocordova Name: HelloCordova iOS project created with [email protected] Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project Installing "cordova-plugin-whitelist" for ios Adding cordova-plugin-whitelist to package.json ➜ HelloWorld cordova build ios -verbose No scripts found for hook "before_build". No scripts found for hook "before_prepare". Checking config.xml and package.json for saved platforms that haven't been added to the project Config.xml and package.json platforms are the same. No pkg.json modification. Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms. PlatformApi successfully found for platform ios Checking for saved plugins that haven't been added to the project Checking for any plugins added to the project that have not been installed in ios platform No differences found between plugins added to project and installed in ios platform. Continuing... Generating platform-specific config.xml from defaults for iOS at /Users/mobile_ci/HelloWorld/platforms/ios/HelloCordova/config.xml Merging project's config.xml into platform-specific iOS config.xml Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www Current launch storyboard undefined Not changing launch storyboard setting in info plist. Wrote out iOS Bundle Version "1.0.0" to /Users/mobile_ci/HelloWorld/platforms/ios/HelloCordova/HelloCordova-Info.plist No need to update build settings for launch storyboard support. iOS Product Name has not changed (still "HelloCordova") This app does not have icons defined This app does not have splash screens defined Updating launch storyboard images at platforms/ios/HelloCordova/Images.xcassets/LaunchStoryboard.imageset/ Updating Storyboard image set contents.json This app does not have additional resource files defined Prepared iOS project successfully No scripts found for hook "after_prepare". No scripts found for hook "before_compile". Error at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15) at process._tickCallback (internal/process/next_tick.js:109:7) ➜ HelloWorld npm list -g | grep cordova npm WARN npm npm does not support Node.js v7.7.4 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13. npm WARN npm You can find the latest version at https://nodejs.org/ ├─┬ [email protected] │ ├─┬ [email protected] │ ├─┬ [email protected] │ │ ├── [email protected] deduped │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ ├── [email protected] deduped │ │ │ ├── [email protected] deduped │ │ ├─┬ [email protected] │ │ │ ├── [email protected] deduped │ │ ├─┬ [email protected] ➜ HelloWorld npm list | grep cordova npm WARN npm npm does not support Node.js v7.7.4 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13. npm WARN npm You can find the latest version at https://nodejs.org/ ├─┬ [email protected] │ ├─┬ [email protected] └── [email protected] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
