microsoft / vsts-cordova-tasks

Streamline CI setup for your Apache Cordova, PhoneGap, Ionic, or Cordova CLI compatible app using a set of useful pre-defined build steps for VS Team Services or TFS
http://go.microsoft.com/fwlink/?LinkID=691188
Other
25 stars 27 forks source link

Unable to determine Identity with npm 10.x #93

Open spelltwister opened 5 years ago

spelltwister commented 5 years ago

Hello,

When I use this build task on hosted macOS in azure devops, I'm getting some errors that are causing the build to fail at various steps.

  1. Old Node Version
    You are running version v6.17.0 of Node.js, which is not supported by Angular CLI v6.
    The official Node.js version that is supported is 8.9 and greater.

This only complains on the hosted macOS, when I build android using windows, this error does not come up. To fix it, I just installed 10.x of node using Node.js Tool Installer task.

  1. Unable to determine identity
    Input to determineIdentity: {"cwd":"/Users/vsts/agent/2.150.3/work/1/s","unlockDefaultKeychain":false,"defaultKeychainPassword":"","p12":"/Users/vsts/agent/2.150.3/work/1/s/signing/ios/DEV/Developer Certificate.p12","p12pwd":"***"}
    TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
    at validateString (internal/validators.js:125:11)

Seems with the updated version of node, it is not passing the expected argument. I cannot get past this error. Here is the YAML for this build step:

steps:
- task: ms-vsclient.cordova-extension.cordovabuildtask.CordovaBuild@1
  displayName: 'Cordova Build ios'
  inputs:
    platform: ios
    configuration: Release
    antBuild: false
    p12: 'signing/ios/DEV/Developer Certificate.p12'
    p12pwd: '$(p12pwd)'
    provProfile: 'signing/ios/DEV/DEV.mobileprovision'
    removeProfile: true
    windowsPhoneOnly: false
    windowsOnly: false
    targetEmulator: false

Files are in correct location and password is set correctly as a build variable.

Please help!

Venkatesh-Sugan commented 5 years ago

Hi myself facing the same issue any update on it, please post it here. Searching the solution for 3 days.

Chiranjeevi521 commented 5 years ago

Hi, Myself also facing same problem Below is my configuration

Can anyone let us know how to fix this ?

sanjay3290 commented 4 years ago

same issue here, anybody got this addressed?

arielhernandezmusa commented 4 years ago

Hi, same problem, some workaround?

kioskFast commented 4 years ago

Hi, I changed the devOps Agent Specification to macOS-10.14 this fixed the issue for me

pgingras commented 4 years ago

Did anyone find a solution? Facing this issue with The latest Cordova-ios version (6.0.0) Agent is macOS-10.15.

Only way to make it work was having an older version of Node.Js, but it's no longer possible with Cordova 6.0.0 because it requires Node 10+