Generate TBD files for the specified frameworks from the given platform runtime location.
Usage
This command will:
Copy each framework from the platform runtime to a temporary location
Generate TBD files using xcrun tapi stubify
Copy TBD and Info.plist files to the appropriate directories
Convert Info.plist files to XML format
Update the generation scripts (update.sh) to include platform support
Update README files with platform-specific instructions
Parameters
When using this command, provide:
Platform: The platform to generate TBDs for (ios, xros, macos, tvos, watchos)
Runtime path: The path to the simulator runtime (e.g., /Library/Developer/CoreSimulator/Volumes/xrOS_22O473/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 2.5.simruntime)
Frameworks: List of frameworks to process (e.g., AttributeGraph, RenderBox, CoreUI)
Update each framework's update.sh script to add platform support:
# Add {platform} support if available
if [ -d "${FRAMEWORK_ROOT}/tbds/{platform-dir}" ]; then
generate_framework $framework_name {platform-dir}
fi
Update each framework's README.md with platform-specific instructions
Platform Directory Mappings
ios: ios-arm64-x86_64-simulator
xros: xros-arm64-x86_64-simulator
macos: macos-arm64e-arm64-x86_64
tvos: tvos-arm64-x86_64-simulator
watchos: watchos-arm64-x86_64-simulator
Framework Directory Mappings
AttributeGraph: AG
RenderBox: RB
CoreUI: CoreUI
Notes
Info.plist files are converted to XML format using plutil -convert xml1
The script includes error checking for missing directories and existing platform support
For AttributeGraph with visionOS, additional manual configuration may be needed for swiftinterface generation
Generate TBDs for: $ARGUMENTS
1---2name: generate-tbd3description: Generate TBD files for frameworks from any platform runtime4---56Generate TBD files for the specified frameworks from the given platform runtime location.78## Usage910This command will:111. Copy each framework from the platform runtime to a temporary location122. Generate TBD files using `xcrun tapi stubify`133. Copy TBD and Info.plist files to the appropriate directories144. Convert Info.plist files to XML format155. Update the generation scripts (update.sh) to include platform support166. Update README files with platform-specific instructions1718## Parameters1920When using this command, provide:21- **Platform**: The platform to generate TBDs for (ios, xros, macos, tvos, watchos)22- **Runtime path**: The path to the simulator runtime (e.g., `/Library/Developer/CoreSimulator/Volumes/xrOS_22O473/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 2.5.simruntime`)23- **Frameworks**: List of frameworks to process (e.g., AttributeGraph, RenderBox, CoreUI)2425## Examples2627### visionOS28```29/generate-tbd3031Platform: xros32Runtime: /Library/Developer/CoreSimulator/Volumes/xrOS_22O473/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 2.5.simruntime33Frameworks: AttributeGraph RenderBox CoreUI34```3536### iOS37```38/generate-tbd3940Platform: ios41Runtime: /Library/Developer/CoreSimulator/Volumes/iOS_22F77/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.5.simruntime42Frameworks: AttributeGraph RenderBox CoreUI43```4445## Implementation4647The command will execute the script at `Scripts/generate_tbd.sh` with the provided parameters. The script will:48491. For each framework:50 - Copy from `{runtime}/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/{framework}.framework`51 - Generate TBD using `xcrun tapi stubify`52 - Create directory structure based on platform:53 - iOS: `{framework_dir}/2024/tbds/ios-arm64-x86_64-simulator/`54 - visionOS: `{framework_dir}/2024/tbds/xros-arm64-x86_64-simulator/`55 - macOS: `{framework_dir}/2024/tbds/macos-arm64e-arm64-x86_64/`56 - tvOS: `{framework_dir}/2024/tbds/tvos-arm64-x86_64-simulator/`57 - watchOS: `{framework_dir}/2024/tbds/watchos-arm64-x86_64-simulator/`58 - Copy and convert Info.plist to XML format59602. Update each framework's `update.sh` script to add platform support:61 ```bash62 # Add {platform} support if available63 if [ -d "${FRAMEWORK_ROOT}/tbds/{platform-dir}" ]; then64 generate_framework $framework_name {platform-dir}65 fi66 ```67683. Update each framework's README.md with platform-specific instructions6970## Platform Directory Mappings7172- **ios**: ios-arm64-x86_64-simulator73- **xros**: xros-arm64-x86_64-simulator74- **macos**: macos-arm64e-arm64-x86_6475- **tvos**: tvos-arm64-x86_64-simulator76- **watchos**: watchos-arm64-x86_64-simulator7778## Framework Directory Mappings7980- **AttributeGraph**: AG81- **RenderBox**: RB82- **CoreUI**: CoreUI8384## Notes8586- Info.plist files are converted to XML format using `plutil -convert xml1`87- The script includes error checking for missing directories and existing platform support88- For AttributeGraph with visionOS, additional manual configuration may be needed for swiftinterface generation8990---9192Generate TBDs for: $ARGUMENTS
Run npx skillmds@latest add openswiftuiproject/generate-tbd in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Generate TBD files for frameworks from any platform runtime It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
openswiftuiproject (@openswiftuiproject) published this skill. Their other Agent Skills are listed on their SkillMD profile.