Plain text error output from xcrun is not handled
Closed this issue · 5 comments
jasonrm commented
The JSON parsing of the xcrun output added in #173 doesn't handle an unaccepted program license agreement with Apple.
with v2.2.1
⨯ Unexpected token E in JSON at position 0 failedTask=build stackTrace=SyntaxError: Unexpected token E in JSON at position 0
at JSON.parse (<anonymous>)
at /Users/runner/work/repo/node_modules/@electron/notarize/src/notarytool.ts:79:25
at Generator.next (<anonymous>)
at fulfilled (/Users/runner/work/repo/node_modules/@electron/notarize/lib/notarytool.js:28:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
with v2.1.0
⨯ Failed to notarize via notarytool
Error: HTTP status code: 403. A required agreement is missing or has expired. This request requires an in-effect agreement that has not been signed or has expired. Ensure your team has signed the necessary legal agreements and that they are not expired.
failedTask=build stackTrace=Error: Failed to notarize via notarytool
JamesS-M commented
I'm experiencing this same problem.
ericvanbuhler commented
I'm experiencing the same issue on v2.3.0
Makio64 commented
same issue here
yingchen-liu commented
Same here