cometchat-ios-troubleshooting

cometchat-ios-troubleshooting is a skill for Claude Code from cometchat/cometchat-skills. It costs 99 tokens per session (1,286 once invoked), scanned A, original, MIT.

A troubleshooting guide for CometChat integrations in iOS apps. It focuses on diagnosing build errors, runtime errors, and related integration problems.

In plain words
What is it for?
Use it to investigate CometChat iOS build and runtime issues and apply debugging techniques.
Why use it?
It gives a structured way to find the cause of common failures instead of guessing at the fix.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cometchat-skills plugin — 98 skills, 1 MCP server shipped together

Good fit Use it to investigate CometChat iOS build and runtime issues and apply debugging techniques.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cometchat/cometchat-skills --skill cometchat-ios-troubleshooting
Clone the repo
git clone --depth 1 https://github.com/cometchat/cometchat-skills

Made for: Claude Code.

Or install cometchat-skills, the plugin that ships this one along with the rest of its 98 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cometchat-ios-troubleshooting

README.md
[![agentmods](https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting/github.svg)](https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting)
Your own site
<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cometchat-ios-troubleshooting

Your own site · 80×15
<a href="https://agentmods.dev/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting"><img src="https://agentmods.dev/badge/skills/cometchat/cometchat-skills/cometchat-ios-troubleshooting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.01286
Opus 5.5 $0.00040 $0.00514
Sonnet 5.5 $0.00020 $0.00257
Haiku 4.5 $0.00010 $0.00129

Measured 22d ago against content hash d2f4bcf67aef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cometchat-ios-troubleshooting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cometchat-ios-troubleshooting/SKILL.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ground truth: CometChatUIKitSwift 5.2.3 + CometChatSDK 4.1.10 (symbols verified vs catalogs/ios-v5.json); signatures FETCHED via cometchat-ios-core/references/docs-map.md; the invariants below (init→login order, credentials flow, SPM-only) are RULES.md + cometchat-ios-core. This diagnostics catalog is cross-checked against the live {DOCS_BASE}/ui-kit/ios/troubleshooting.md page (base + paths in cometchat-ios-core/references/docs-map.md), and adds the host-side/runtime symptoms it doesn't cover.

Companion skills (read first)

  • cometchat-ios-core — the correct init→login→render order, the Secrets.xcconfig→Info.plist→Bundle.main credential flow, and the SwiftUI launch hook the fixes below restore.

Use this skill when

An iOS CometChat integration compiles but misbehaves at runtime: a screen that never fills, login that does nothing, or empty data.

Start here — iOS fails SILENTLY, on ORDER and CREDENTIALS

The two dominant causes of "the screen never populates":

  1. login() was called before initFromSettings resolved. Both are async and must COMPLETE in order; login-before-init fails with no crash and no visible error — just a screen that never loads (cometchat-ios-core).
  2. Credentials came through as the literal $(COMETCHAT_APP_ID). The Secrets.xcconfig → attach-to-configs → declare-in-Info.plist → read-via-Bundle.main chain has four steps; miss one and you init with the literal placeholder, which then fails auth.

Symptom → cause → fix

Symptom Likely cause Fix
Screen never populates, no error login before init resolved Chain them: call login only inside the init completion (cometchat-ios-core references/swiftui.md)
Auth fails immediately Wrong Region, or creds read as $(...) Region must match the dashboard app; verify Bundle.main returns the value, not the literal $(
Values are the literal $(...) xcconfig not attached, or Info.plist key missing Attach Secrets.xcconfig to the build configs AND declare each key in Info.plist (references/setup-credentials.md §2-§3)
SPM won't resolve / app crashes at launch with Library not loaded: @rpath/CometChatCallsSDK.framework a hand-added exact CometChatSDK pin fights the kit's own from: "4.1.10", or the kit is 5.2.0 to 5.2.2 (launch crash without the Calls SDK) Depend on CometChatUIKitSwift alone, Up to Next Major from 5.2.3; remove the Chat SDK pin (cometchat-ios-core Install)
Build fails after adding a Podfile Tried CocoaPods SPM only — a Podfile is a detection signal, not an instruction; remove the pod integration
Conversations empty New app has no conversations, or wrong scope Send a first message; check the request scope
login "user not found" UID does not exist in the app Use a real UID (Dashboard → Users; fresh apps seed cometchat-uid-1) — never a guessed superhero*
Calls fail / no permission prompt Missing usage-description strings or VoIP entitlement Add NSCameraUsageDescription + NSMicrophoneUsageDescription; enable the VoIP entitlement (cometchat-ios-push/-calls)
Works in dev, fails in release Auth Key stripped for release but still using login(uid:) Switch to login(authToken:) with a server token (cometchat-ios-production)

Read the full file on GitHub · 46 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed d2f4bcf67aef
  2. 2mo ago Changed · -958 lines · +68 tokens per session scan C → A 69606c17c5c0
  3. 3mo ago First seen · 1,004 lines · 31 tokens per session scan C b7a5fcf531ed

Subscribe to this mod's changes

cometchat-ios-troubleshooting is a skill published in the GitHub repository cometchat/cometchat-skills (184 stars, last pushed 22d ago), licensed MIT. It adds 99 tokens to every session and 1,286 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

cometchat-ios-troubleshooting compared with skills from other repositories

cometchat-ios-troubleshooting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cometchat-ios-troubleshootingcometchat/cometchat-skillsSkill18422d agoMITA99Claude Code
firebase-crashlyticsevanca/flutter-ai-rulesSkill67823d agoMITA34Claude Code
flutter-errorsevanca/flutter-ai-rulesSkill67823d agoMITA34Claude Code
wechat-devtoolsWaterTian/wechat-devtools-mcpSkill1755d agoMITA24Claude Code
ios-ettrace-profilerXopoko/build-swift-appsSkill459d agoMITA35Claude Code, Codex
ios-memgraph-inspectorXopoko/build-swift-appsSkill459d agoMITA42Claude Code, Codex
tuist-generation-doctorXopoko/build-swift-appsSkill459d agoMITA40Claude Code, Codex