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 
[email protected] manually with `npm uninstall -g cordova-ios`. After 
reinstalling [email protected] (`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 [email protected]
   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
   + [email protected]
   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/
   ├── [email protected] -> 
/Users/mobile_ci/jenkins/workspace/infobip-mobile-messaging-cordova-plugin-build-ios
   ├─┬ [email protected]
   ├─┬ [email protected]
   │ ├─┬ [email protected]
   ├─┬ [email protected]
   └── [email protected]
   ➜  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 
   ```

----------------------------------------------------------------
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]

Reply via email to