@anthropic-ai/claude-agent-sdk contains unsigned macOS binaries causing Apple notarization failures

Resolved 💬 3 comments Opened Dec 3, 2025 by ben-vargas Closed Dec 4, 2025

Problem

The @anthropic-ai/claude-agent-sdk npm package bundles unsigned macOS native binaries inside the JetBrains plugin, which causes Apple notarization to fail for any macOS Electron app that depends on this package.

Affected Files

The unsigned binaries are located inside vendor/claude-code-jetbrains-plugin/lib/jansi-2.4.1.jar:

  • org/fusesource/jansi/internal/native/Mac/x86/libjansi.jnilib (i386)
  • org/fusesource/jansi/internal/native/Mac/x86_64/libjansi.jnilib (x86_64)
  • org/fusesource/jansi/internal/native/Mac/arm64/libjansi.jnilib (arm64)

Notarization Errors

{
  "status": "Invalid",
  "statusSummary": "Archive contains critical validation errors",
  "issues": [
    {
      "severity": "error",
      "path": "...node_modules/@anthropic-ai/claude-agent-sdk/vendor/claude-code-jetbrains-plugin/lib/jansi-2.4.1.jar/org/fusesource/jansi/internal/native/Mac/arm64/libjansi.jnilib",
      "message": "The binary is not signed with a valid Developer ID certificate.",
      "architecture": "arm64"
    },
    {
      "severity": "error",
      "path": "...node_modules/@anthropic-ai/claude-agent-sdk/vendor/claude-code-jetbrains-plugin/lib/jansi-2.4.1.jar/org/fusesource/jansi/internal/native/Mac/arm64/libjansi.jnilib",
      "message": "The signature does not include a secure timestamp.",
      "architecture": "arm64"
    }
  ]
}

(Similar errors for x86 and x86_64 architectures)

Affected Versions

Confirmed present in:

  • @anthropic-ai/claude-agent-sdk@0.1.51
  • @anthropic-ai/claude-agent-sdk@0.1.57 (latest as of 2025-12-03)

Impact

Any macOS Electron application that includes @anthropic-ai/claude-agent-sdk as a dependency cannot pass Apple notarization, which is required for distribution outside the Mac App Store on macOS 10.15+.

Suggested Solutions

  1. Sign the native binaries with a valid Apple Developer ID certificate before publishing the npm package
  2. Exclude the JetBrains plugin from the npm package if it's not needed for SDK functionality
  3. Move the JetBrains plugin to a separate optional package

Reproduction

  1. Create an Electron app with @anthropic-ai/claude-agent-sdk as a dependency
  2. Build for macOS with code signing enabled
  3. Submit to Apple notarization via notarytool
  4. Notarization fails with the errors above

Environment

  • Package: @anthropic-ai/claude-agent-sdk
  • Platform: macOS (Electron apps)
  • Notarization tool: Apple notarytool

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗