native-build-errors

native-build-errors is a skill for Claude Code from AnilBurcu/claude-code-react-native. It costs 46 tokens per session (1,386 once invoked), scanned C, original, MIT.

A reference for diagnosing failed iOS and Android builds in React Native, including CocoaPods, Gradle, Xcode, Kotlin, Java, code generation, and cache problems.

In plain words
What is it for?
Use it for pod installation failures, Gradle and linker errors, Xcode errors, incompatible tool versions, and native build output.
Why use it?
It explains how to locate the first meaningful build error instead of treating the final “build failed” message as the cause.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the rn plugin — 18 skills, 4 agents shipped together

Good fit Use it for pod installation failures, Gradle and linker errors, Xcode errors, incompatible tool versions, and native build output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anilburcu/claude-code-react-native/native-build-errors
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 AnilBurcu/claude-code-react-native --skill native-build-errors
Clone the repo
git clone --depth 1 https://github.com/AnilBurcu/claude-code-react-native

Made for: Claude Code.

Or install rn, the plugin that ships this one along with the rest of its 18 skills, 4 agents.

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 native-build-errors

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/native-build-errors/github.svg)](https://agentmods.dev/skills/anilburcu/claude-code-react-native/native-build-errors)
Your own site
<a href="https://agentmods.dev/skills/anilburcu/claude-code-react-native/native-build-errors"><img src="https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/native-build-errors/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 native-build-errors

Your own site · 80×15
<a href="https://agentmods.dev/skills/anilburcu/claude-code-react-native/native-build-errors"><img src="https://agentmods.dev/badge/skills/anilburcu/claude-code-react-native/native-build-errors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00046 $0.01386
Opus 5.5 $0.00018 $0.00554
Sonnet 5.5 $0.00009 $0.00277
Haiku 4.5 $0.00005 $0.00139

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

Security

Grade C, and why

native-build-errors scanned grade C with 1 finding 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 1mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `No such module 'X'`: the pod exists but the workspace was not used, or DerivedData holds a stale module map. Confirm you opened `.xcworkspace`, then `rm -rf ~/Library/Developer/Xcode/DerivedData`.
plugins/rn/skills/native-build-errors/SKILL.md · 75 lines

How it starts

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

Native build failure triage

The one rule that matters

Native build logs bury the real error under hundreds of lines of noise. Always find the FIRST real error, not the last line. The last line is usually a generic "build failed" wrapper around the actual cause.

  • Android: search the log for FAILURE: and Caused by:. The deepest Caused by: is the real one. Also look for > Task :app:... FAILED to identify which task died.
  • iOS: search for error: (lowercase, with colon). Ignore warning:. When xcodebuild output is huge, the failing step name right above the first error: tells you which pod or script phase broke.

Never start by nuking caches. Read the error first. Cache-nuking is step 8, not step 1.

iOS playbook

pod install fails

  • None of your spec sources contain a spec satisfying the dependency: the lockfile and Podfile disagree, usually after a branch switch or dependency bump. Start gentle: cd ios && pod install --repo-update. Only if that fails, remove Pods/ and Podfile.lock and reinstall; in an RN project the lockfile regenerates from package.json, which is why this is acceptable here and not for JS lockfiles (see the last-resort section).
  • Ruby/ffi errors on Apple Silicon: the project's Ruby is too old or gems were built for the wrong arch. Prefer the version from .ruby-version. bundle install && bundle exec pod install beats global pods.
  • could not find compatible versions for pod X: two libraries pin conflicting versions of a shared native dependency (common with Firebase and GoogleUtilities). Check which two, then upgrade the older library instead of pinning in the Podfile if possible.

Xcode build fails after pods succeeded

  • No such module 'X': the pod exists but the workspace was not used, or DerivedData holds a stale module map. Confirm you opened .xcworkspace, then rm -rf ~/Library/Developer/Xcode/DerivedData.
  • Duplicate symbols or use_frameworks! conflicts: static and dynamic linkage mixing, classic with Firebase. In Expo projects set useFrameworks: "static" via expo-build-properties instead of hand-editing the Podfile.
  • Signing errors on device builds: set the development team in Xcode once, or use EAS credentials. Do not commit personal team IDs into the project file of a shared repo.
  • A script phase fails (Hermes, sourcemaps, [CP-User]): open the phase's own log section. These phases inherit PATH from Xcode, not your shell, so tools installed via nvm or asdf may not resolve. Hardcoding node paths in .xcode.env.local fixes most of it.

Read the full file on GitHub · 75 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. 1mo ago Changed · -21 tokens per session bde44ad11c14
  2. 1mo ago First seen · 75 lines · 67 tokens per session scan C 3dbcb6b1c444

Subscribe to this mod's changes

native-build-errors is a skill published in the GitHub repository AnilBurcu/claude-code-react-native (3 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 1,386 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

expo-56

Authoritative, version-pinned reference for Expo SDK 56 and SDK 57 — both postdate your training, so defer to this skill over memory for anything Expo. SDK 57 is the current release (2026-07-08, React Native 0.86); SDK 56 is the previous, still-supported release (React Native 0.85). Use it whenever the user is…

mahdi-salmanzade/expo56-skill · 391 tokens

audit-ppmplugin

Statically audit a built .ppmplugin before wrap testing. Checks archive layout, manifest compatibility, bundle consistency, Android DEX integrity and SDK leakage, iOS framework structure, native source-to-receiver alignment, and the PCF composite-key/sendAsync transport contract. Reports CRITICAL, WARNING, and INFO…

microsoft/power-platform-skills · 112 tokens

generate-ppmplugin-manifest

Validate, reconcile to the chosen target(s), and stage the manifest.json for a .ppmplugin bundle. In the normal flow the committed ./manifest.json already exists (authored by /generate-native-extension), so this stage reads it, runs the plugin's upload-compatibility checks locally as a pre-flight gate (name regex…

microsoft/power-platform-skills · 194 tokens

expo

Use when shipping a React Native app with Expo — EAS Build/Submit/Update, eas.json profiles and channels, config plugins, prebuild/CNG, runtime-version policy, OTA updates that never land, SDK upgrades, the New Architecture. NOT RN UI, navigation or native-module authoring (that is react-native), NOT a Dart app (that…

ericrisco/rsc-harness · 79 tokens

touch-audit

Mobile audit — app size, startup time, crash reporting, store compliance, accessibility, offline behavior. Use when asked for "mobile review", "app store readiness", "mobile performance", or "crash analysis".

tonone-ai/tonone · 47 tokens

performance-profiling

Instruments integration and performance analysis workflows for iOS apps. Use when profiling CPU usage, memory allocation, network activity, or energy consumption. Covers Time Profiler, Allocations, Leaks, Network instruments, and performance optimization strategies.

conorluddy/xclaude-plugin · 52 tokens