Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Unable to determine Identity with npm 10.x #93

Open
spelltwister opened this issue Jun 16, 2019 · 6 comments
Open

Unable to determine Identity with npm 10.x #93

spelltwister opened this issue Jun 16, 2019 · 6 comments

Comments

@spelltwister
Copy link

spelltwister commented Jun 16, 2019

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
Copy link

Venkatesh-Sugan commented Jun 26, 2019

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

@Chiranjeevi521
Copy link

Hi, Myself also facing same problem
Below is my configuration

  • task: CordovaBuild@1
    inputs:
    platform: 'ios'
    configuration: '$(Configuration)'
    p12: $(P12Certificate.secureFilePath)
    p12pwd: $(P12password)
    provProfile: $(ProvisionCertificate.secureFilePath)
    outputPattern: 'bin'

Can anyone let us know how to fix this ?

@sanjay3290
Copy link

same issue here, anybody got this addressed?

@arielhernandezmusa
Copy link

Hi, same problem, some workaround?

@kioskFast
Copy link

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

@pgingras
Copy link

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+

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants