You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/27 09:25:33 UTC

[GitHub] [cordova] kas-kad commented on issue #176: 🦟`cordova build ios` for a blank project fails with an unknown error

kas-kad commented 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 cordova-ios@4.5.5 manually with `npm uninstall -g cordova-ios`. After reinstalling cordova@9.0.0 (`sudo npm install cordova -g`) I repeated the `cordova create 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 cordova-ios@5.1.0
   Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
   Plugin 'com-infobip-plugins-mobilemessaging' 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
   Discovered saved plugin "com-infobip-plugins-mobilemessaging". Adding it to the project
   Installing "com-infobip-plugins-mobilemessaging" for ios
   Installing "cordova-plugin-add-swift-support" for ios
   Installing "cordova-custom-config" for ios
   Running command: /Users/mobile_ci/HelloWorld/plugins/com-infobip-plugins-mobilemessaging/scripts/build_mobile_messaging_framework.sh /Users/mobile_ci/HelloWorld
   Building MobileMessaging.framework with Carthage started...
   *** Checking out mobile-messaging-sdk-ios at "5.3.1"
   *** xcodebuild output can be found in /var/folders/bf/xbk6fmld26zfg2xppv65vn740000gn/T/carthage-xcodebuild.Yg7AEl.log
   *** Invalid cache found for mobile-messaging-sdk-ios, rebuilding with all downstream dependencies
   *** Building scheme "DebugMobileMessaging" in MobileMessaging.xcodeproj
   *** Building scheme "MobileMessaging" in MobileMessaging.xcodeproj
   Building MobileMessaging.framework with Carthage finished.
   /Users/mobile_ci/HelloWorld
   Adding com-infobip-plugins-mobilemessaging to package.json
   cordova-custom-config: Applied custom config from config.xml to /Users/mobile_ci/HelloWorld/platforms/ios/HelloCordova/HelloCordova-Info.plist
   Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Debug
   Update IOS build setting SWIFT_OBJC_BRIDGING_HEADER to: "$(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h" for build configuration Release
   Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Debug
   Update SWIFT version to 4.0 Debug
   Update IOS build setting SWIFT_OPTIMIZATION_LEVEL to: -Onone for build configuration Debug
   Update IOS build setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to: YES for build configuration Release
   Update SWIFT version to 4.0 Release
   + cordova-custom-config@5.1.0
   updated 1 package and audited 215 packages in 1.989s
   
   6 packages are looking for funding
     run `npm fund` for details
   
   found 0 vulnerabilities
   
   
   ➜  HelloWorld cordova build ios                                                                 
   cordova-custom-config: Skipping auto-restore of config file backup(s)
   cordova-custom-config: Applied custom config from config.xml to /Users/mobile_ci/HelloWorld/platforms/ios/HelloCordova/HelloCordova-Info.plist
   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 | 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/
   ├── com-infobip-plugins-mobilemessaging@1.1.5 -> /Users/mobile_ci/jenkins/workspace/infobip-mobile-messaging-cordova-plugin-build-ios
   ├─┬ cordova-custom-config@5.1.0
   ├─┬ cordova-ios@5.1.0
   │ ├─┬ cordova-common@3.2.1
   ├─┬ cordova-plugin-add-swift-support@2.0.2
   └── cordova-plugin-whitelist@1.3.4
   ➜  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/
   ├─┬ cordova@9.0.0
   │ ├─┬ cordova-common@3.2.1
   │ ├─┬ cordova-lib@9.0.1
   │ │ ├── cordova-common@3.2.1 deduped
   │ │ ├─┬ cordova-create@2.0.0
   │ │ │ ├── cordova-app-hello-world@4.0.0
   │ │ │ ├── cordova-common@3.2.1 deduped
   │ │ │ ├── cordova-fetch@2.0.1 deduped
   │ │ ├─┬ cordova-fetch@2.0.1
   │ │ │ ├── cordova-common@3.2.1 deduped
   │ │ ├─┬ cordova-serve@3.0.0
   ➜  HelloWorld 
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org