Created
September 26, 2025 08:50
-
-
Save tornikegomareli/1ab4d693ba17dc9fa77813633c533936 to your computer and use it in GitHub Desktop.
Copy iOS 26 and Swift 6.2 features as specs into your AI folder and Reference them in your AGENT.md file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| XCODE_DOCS="/Applications/Xcode.app/Contents/PlugIns/IDEIntelligenceChat.framework/Versions/A/Resources/AdditionalDocumentation" | |
| OUTPUT_DIR="ios26-docs" | |
| if [ ! -d "$XCODE_DOCS" ]; then | |
| echo "❌ Xcode docs not found at: $XCODE_DOCS" | |
| exit 1 | |
| fi | |
| echo "Copying iOS 26 docs." | |
| mkdir -p "$OUTPUT_DIR" | |
| cp -r "$XCODE_DOCS"/*.md "$OUTPUT_DIR/" 2>/dev/null || { | |
| echo "❌ Failed to copy docs" | |
| exit 1 | |
| } | |
| echo "✅ Copied $(ls -1 "$OUTPUT_DIR"/*.md | wc -l) files to $OUTPUT_DIR/" | |
| DOCS_REF="@$(pwd)/$OUTPUT_DIR" | |
| echo "" | |
| echo "Looking for AI assistant config files..." | |
| for claude_file in $(find . -name "CLAUDE.md" -o -name "claude.md" -o -name "Claude.md" 2>/dev/null); do | |
| if ! grep -q "$OUTPUT_DIR" "$claude_file"; then | |
| echo "" >>"$claude_file" | |
| echo "# iOS 26 Documentation" >>"$claude_file" | |
| echo "$DOCS_REF" >>"$claude_file" | |
| echo "✅ Added to: $claude_file" | |
| fi | |
| done | |
| for cursor_file in $(find . -name ".cursorrules" -o -name "cursor.md" -o -name ".cursor" 2>/dev/null); do | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment