Agent skill

Ffmpeg Kit macOS Codesign Crash

by divinevideo in divinevideo/divine-mobile

Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure.

MPL-2.0Auto-check passedMedia & Creative

Install Ffmpeg Kit macOS Codesign Crash

skills CLI
$ npx skills add divinevideo/divine-mobile --skill ffmpeg-kit-macos-codesign-crash -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install divinevideo/divine-mobile ffmpeg-kit-macos-codesign-crash --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ffmpeg-kit-macos-codesign-crash .claude/skills/ffmpeg-kit-macos-codesign-crash && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ffmpeg-kit-macos-codesign-crash
GitHub stars
266
Token cost
~1.1k tokens
SKILL.md length
350 words
Files
1
Skills in repo
103
Repo updated
First seen
Licence
MPL-2.0

At a glance

Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure.

  • Works in 3 steps: flutter run -d macos should launch the… → Video encoding/decoding operations… → iOS builds continue to work (they…
  • MacOS app builds successfully but crashes immediately on launch
  • SKILL.md covers Problem, Context / Trigger Conditions, Root Cause and Solution, plus 6 more sections
  • Calls flutter

What it does

Ffmpeg Kit macOS Codesign Crash is an agent skill from divinevideo/divine-mobile. Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure. Use when: (1) macOS app builds successfully but crashes immediately on launch, (2) Crash log shows "Library not loaded: libfontconfig.1.dylib" or similar homebrew library, (3) Error mentions "code signature not valid for use in process" with "different Team IDs", (4) Using ffmpegkitflutternew (Full GPL variant). The Full GPL variant has external dependencies on homebrew libraries that fail macOS code signing. Switch to…

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Video production, Cross-platform mobile apps and App store release. It works with FFmpeg, macOS, Flutter and Homebrew. The licence is MPL-2.0.

When your agent uses it

  • MacOS app builds successfully but crashes immediately on launch
  • Crash log shows Library not loaded: libfontconfig.1.dylib
  • Similar homebrew library
  • Error mentions code signature not valid for use in process with different Team IDs

Example prompts

  • “Library not loaded: libfontconfig.1.dylib”
  • “code signature not valid for use in process”
  • “different Team IDs”
  • “/ffmpeg-kit-macos-codesign-crash”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. flutter run -d macos should launch the app without crashing
  2. Video encoding/decoding operations should work normally
  3. iOS builds continue to work (they weren't affected)

What it can do on your machine

Read from SKILL.md and the folder at commit 6487b05. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • flutter

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pub.dev
    • developer.apple.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ffmpeg Kit macOS Codesign Crash loads about 1.1k tokens when it runs. Until then it costs about 142 tokens; SKILL.md has 350 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~142
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from divinevideo/divine-mobile at commit 6487b05, republished under its MPL-2.0 licence (© divinevideo). 350 words, ~1,142 tokens.

Download SKILL.mdSave it as .claude/skills/ffmpeg-kit-macos-codesign-crash/SKILL.md (or your agent's skills folder).
name
ffmpeg-kit-macos-codesign-crash
description
Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure. Use when: (1) macOS app builds successfully but crashes immediately on launch, (2) Crash log shows "Library not loaded: libfontconfig.1.dylib" or similar homebrew library, (3) Error mentions "code signature not valid for use in process" with "different Team IDs", (4) Using ffmpeg_kit_flutter_new (Full GPL variant). The Full GPL variant has external dependencies on homebrew libraries that fail macOS code signing. Switch to ffmpeg_kit_flutter_new_min.
author
Claude Code
version
1.0.0
date
2025-01-25

FFmpeg Kit macOS Code Signing Crash

Problem

Flutter macOS app builds successfully but crashes immediately at launch with a library loading failure. The crash is caused by FFmpeg Kit's Full GPL variant having runtime dependencies on homebrew-installed libraries (like fontconfig) that fail macOS code signature validation.

Context / Trigger Conditions

  • Platform: macOS only (iOS and Android are not affected)
  • Package: Using ffmpeg_kit_flutter_new (Full GPL variant)
  • Symptom: App builds successfully but crashes on launch
  • Crash log shows:
    Library not loaded: /opt/homebrew/*/libfontconfig.1.dylib
    Referenced from: .../libswresample.framework/...
    Reason: code signature in (.../libfontconfig.1.dylib) not valid for use in process:
    mapping process and mapped file (non-platform) have different Team IDs

Root Cause

The ffmpeg_kit_flutter_new package is the "Full GPL" variant which includes many FFmpeg libraries for advanced features like text rendering (drawtext filter). These libraries have external dependencies on system fonts via libfontconfig.

On macOS, when the app tries to load libswresample.framework, it attempts to also load libfontconfig.1.dylib from homebrew. macOS code signing validation rejects this because the homebrew library has a different Team ID than your app.

Solution

Switch from ffmpeg_kit_flutter_new (Full GPL) to ffmpeg_kit_flutter_new_min (Minimal).

Step 1: Update pubspec.yaml

yaml
# Before
ffmpeg_kit_flutter_new: ^3.2.0

# After
ffmpeg_kit_flutter_new_min: ^3.1.0

Step 2: Update imports in all Dart files

dart
// Before
import 'package:ffmpeg_kit_flutter_new/ffmpeg_kit.dart';
import 'package:ffmpeg_kit_flutter_new/ffprobe_kit.dart';
import 'package:ffmpeg_kit_flutter_new/return_code.dart';

// After
import 'package:ffmpeg_kit_flutter_new_min/ffmpeg_kit.dart';
import 'package:ffmpeg_kit_flutter_new_min/ffprobe_kit.dart';
import 'package:ffmpeg_kit_flutter_new_min/return_code.dart';

Step 3: Clean and rebuild

bash
flutter clean
rm -f macos/Podfile.lock
flutter pub get
flutter run -d macos

What Features Are Preserved

The minimal variant includes everything needed for typical video apps:

  • h264/libx264 video encoding
  • AAC audio encoding
  • VideoToolbox hardware acceleration (Apple platforms)
  • Standard filters: overlay, crop, scale, concat, amix
  • FFprobe for media information
Show full SKILL.md (145 more words)Show less

What Features Are Removed

The minimal variant does NOT include:

  • drawtext filter (font rendering) - use PNG overlays instead
  • Advanced codec libraries with external dependencies
  • Features requiring fontconfig, freetype, etc.

Verification

After the fix:

  1. flutter run -d macos should launch the app without crashing
  2. Video encoding/decoding operations should work normally
  3. iOS builds continue to work (they weren't affected)

Example

Find files needing import updates:

bash
grep -r "ffmpeg_kit_flutter_new" lib/ --include="*.dart" -l

Update all imports (sed example):

bash
find lib -name "*.dart" -exec sed -i '' \
  's/ffmpeg_kit_flutter_new/ffmpeg_kit_flutter_new_min/g' {} \;

Notes

  • This issue only affects macOS; iOS and Android don't have the same code signing restrictions
  • The error message is misleading - it mentions fontconfig but the fix is changing FFmpeg Kit variants
  • If you actually need drawtext filter on macOS, you'd need to bundle fontconfig with proper signing (complex)
  • Alternative: Use the official ffmpeg_kit_flutter from arthenica if you need more control over variants

References

© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/ffmpeg-kit-macos-codesign-crash of divinevideo/divine-mobile.

Open the folder on GitHubat commit 6487b05

Compare with similar skills

Ffmpeg Kit macOS Codesign Crash next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ffmpeg Kit macOS Codesign Crash compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ffmpeg Kit macOS Codesign Crash this skilldivinevideo/divine-mobile266—~1.1kAutomated safety check: PassMPL-2.0
OdevioOdevio/Odevio-CLI423—~7.6kAutomated safety check: PassMIT
Engine Whats Newflutter/flutter179k—~978Automated safety check: PassBSD-3-Clause
App Store Reviewsafaiyeh/app-store-review-skill3661 repos~3.4kAutomated safety check: PassMIT
Apple Designvrcm-team/VRCM1791 repos~6.2kAutomated safety check: PassMIT
Releasevaayne/mori303—~1.2kAutomated safety check: PassMIT

Similar skills

  • Odevio

    Odevio/Odevio-CLI

    Take a Flutter project to an iPhone or the App Store with Odevio - build, sign and publish iOS apps from Windows, Linux or macOS with no Mac and no Xcode.

    423 GitHub stars~7.6k tokensUpdated 14 days ago
    MobileAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed
  • App Store Review

    safaiyeh/app-store-review-skill

    Evaluates code against Apple's App Store Review Guidelines. An agent skill from safaiyeh/app-store-review-skill.

    366 GitHub starsUsed in 1 repo~3.4k tokens
    MobileAuto-check passed
  • Apple Design

    vrcm-team/VRCM

    Cross-platform UI/UX design reviewer grounded in Apple's Human Interface Guidelines (122 pages pulled from developer.apple.com, including 57 component pages) plus a design-craft lens for…

    179 GitHub starsUsed in 1 repo~6.2k tokens
    MobileAuto-check passed
  • Release

    vaayne/mori

    Release workflow for Mori macOS workspace terminal and MoriRemote iOS app.

    303 GitHub stars~1.2k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • flutter_soloud Setup

    alnitak/flutter_soloud

    Walks through adding the flutter_soloud audio engine to a Flutter app, with per-platform setup, initialization, binary-size and logging options, and output device switching.

    425 GitHub stars~3.6k tokensUpdated 2 days ago
    MobileAuto-check: notes

More from divinevideo/divine-mobile

All 103 skills in this repo
  • Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".

    266 GitHub stars~931 tokensUpdated today
    Auto-check passed
  • Art Direct

    divinevideo/divine-mobile

    Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.

    266 GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Async Await Null Race Condition

    divinevideo/divine-mobile

    Fix "Null check operator used on a null value" errors when an object is set to null during an async await.

    266 GitHub stars~881 tokensUpdated today
    Auto-check passed
  • AWS V4 Signing Custom Headers Gcs

    divinevideo/divine-mobile

    Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.

    266 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Bash Herestring Newline Secrets

    divinevideo/divine-mobile

    Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.

    266 GitHub stars~791 tokensUpdated today
    Auto-check passed
  • Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).

    266 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about Ffmpeg Kit macOS Codesign Crash

What does Ffmpeg Kit macOS Codesign Crash do?

Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure. Ffmpeg Kit macOS Codesign Crash is an agent skill from divinevideo/divine-mobile. Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure.

When should I use Ffmpeg Kit macOS Codesign Crash?

Ffmpeg Kit macOS Codesign Crash fits situations like: macOS app builds successfully but crashes immediately on launch; crash log shows Library not loaded: libfontconfig.1.dylib; similar homebrew library; error mentions code signature not valid for use in process with different Team IDs.

How do I install Ffmpeg Kit macOS Codesign Crash in Claude Code?

Run `npx skills add divinevideo/divine-mobile --skill ffmpeg-kit-macos-codesign-crash -a claude-code`. Or copy the skill folder (.agents/skills/ffmpeg-kit-macos-codesign-crash in divinevideo/divine-mobile) into .claude/skills/ffmpeg-kit-macos-codesign-crash in your project. Claude Code loads it when a task matches its description.

How do I install Ffmpeg Kit macOS Codesign Crash in Codex?

Run `npx skills add divinevideo/divine-mobile --skill ffmpeg-kit-macos-codesign-crash -a codex`. Or copy the skill folder (.agents/skills/ffmpeg-kit-macos-codesign-crash in divinevideo/divine-mobile) into .agents/skills/ffmpeg-kit-macos-codesign-crash in your project. Codex loads it when a task matches its description.

Can I use Ffmpeg Kit macOS Codesign Crash in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill ffmpeg-kit-macos-codesign-crash -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ffmpeg-kit-macos-codesign-crash, .gemini/skills/ffmpeg-kit-macos-codesign-crash, .github/skills/ffmpeg-kit-macos-codesign-crash and .opencode/skills/ffmpeg-kit-macos-codesign-crash in your project.

What does Ffmpeg Kit macOS Codesign Crash need to run?

Going by SKILL.md and its folder, Ffmpeg Kit macOS Codesign Crash needs the command-line tools its instructions call (flutter).

Does Ffmpeg Kit macOS Codesign Crash access the network?

SKILL.md names 2 domains. As links in the text: pub.dev and developer.apple.com. This is read from the text; nothing was executed.

Is Ffmpeg Kit macOS Codesign Crash safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ffmpeg Kit macOS Codesign Crash use?

Ffmpeg Kit macOS Codesign Crash is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ffmpeg Kit macOS Codesign Crash use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ffmpeg Kit macOS Codesign Crash?

Skills that share tags, products or a category with Ffmpeg Kit macOS Codesign Crash: Odevio (Odevio/Odevio-CLI, 423 stars), Engine Whats New (flutter/flutter, 179k stars), App Store Review (safaiyeh/app-store-review-skill, 366 stars) and Apple Design (vrcm-team/VRCM, 179 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ffmpeg Kit macOS Codesign Crash?

divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 9, 2026.

Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.