nssharp-objc-parser

Parse Objective-C header files into JSON or C# binding definitions.

1|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/dalexsoto/NSSharp --skill nssharp-objc-parser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nssharp-objc-parser
Source: https://github.com/dalexsoto/NSSharp/tree/main/.agents/skills/nssharp-objc-parser
Command: npx skills add https://github.com/dalexsoto/NSSharp --skill nssharp-objc-parser

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the parsing of Objective-C header files, converting them into structured JSON representations of APIs or generating C# binding definitions compatible with .NET for iOS/MAUI. It eliminates the need for manual analysis of complex Objective-C interfaces.

Core Features & Use Cases

  • API Surface Inspection: Understand the structure of Objective-C libraries by parsing their headers.
  • Binding Generation: Automatically create C# bindings for Objective-C APIs, streamlining cross-platform development.
  • Use Case: You have a third-party Objective-C library and need to integrate it into your .NET MAUI application. Use this Skill to parse its headers and generate the necessary C# definitions, saving significant manual effort.

Quick Start

Use the nssharp-objc-parser skill to parse the Objective-C header file 'MyHeader.h' and output the results as JSON to 'output.json'.

Frequently Asked Questions about nssharp-objc-parser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate C# bindings from Objective-C headers for .NET MAUI?

You can parse an entire xcframework by targeting the framework directory directly, allowing the tool to process all included slices and extract structured JSON or C# binding definitions from the contained Objective-C headers.

What Objective-C constructs are supported when parsing to JSON?

Parsing supports Objective-C interfaces, protocols, properties, methods, enums, structs, typedefs, and block types, while also applying nullability annotations and macro heuristics to ensure accurate JSON or C# output.

Can I parse a specific xcframework slice instead of the entire framework?

Yes, you can parse specific xcframework slices individually, extracting the API surface from the targeted Objective-C headers within that slice to produce structured JSON or C# binding definitions.

Does the parser handle nullability annotations and macros in Objective-C headers?

The parser handles nullability annotations and applies macro heuristics during Objective-C header parsing, ensuring the generated C# binding definitions and JSON structures accurately reflect the API's nullability requirements.

What's the best way to inspect the API surface of an Objective-C library?

The best way to inspect an Objective-C library's API surface is parsing its header files into structured JSON, which reveals the underlying interfaces, protocols, and methods without requiring manual code analysis.