Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Capacitor iOS hardening

Tightens Xcode security settings and native plugin code in a Capacitor iOS app, one safe step at a time.

Claude's review

7/10 Careful Capacitor iOS hardening workflow, relies on missing references and an audit script.

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

Audits and progressively hardens Xcode security build settings for a Capacitor iOS app (ios/App/App.xcodeproj, scheme App) and native plugin code (Swift/ObjC/C, Package.swift, podspec). Covers `xcodebuild -showBuildSettings -json`, security compiler warnings, static analyzer checkers (`xcodebuild analyze`), Xcode Enhanced Security (ENABLE_ENHANCED_SECURITY, com.apple.security.hardened-process entitlements, pointer authentication / arm64e, memory tagging soft mode), what is safe for a WKWebView hybrid app vs what breaks CocoaPods, SPM binary xcframeworks or Cordova plugins, staged adoption, and a decision log. Use for "harden my iOS build", "enable Enhanced Security", security build settings audit, arm64e link errors after enabling pointer authentication, or Build and Analyze setup. Do not use for ATS/TLS, signing, secrets or WebView rules (capacitor-security), or App Store review (capacitor-apple-review-preflight).

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: capacitor-ios-security-hardening
description: Audits and progressively hardens Xcode security build settings for a Capacitor iOS app (ios/App/App.xcodeproj, scheme App) and native plugin code (Swift/ObjC/C, Package.swift, podspec). Covers `xcodebuild -showBuildSettings -json`, security compiler warnings, static analyzer checkers (`xcodebuild analyze`), Xcode Enhanced Security (ENABLE_ENHANCED_SECURITY, com.apple.security.hardened-process entitlements, pointer authentication / arm64e, memory tagging soft mode), what is safe for a WKWebView hybrid app vs what breaks CocoaPods, SPM binary xcframeworks or Cordova plugins, staged adoption, and a decision log. Use for "harden my iOS build", "enable Enhanced Security", security build settings audit, arm64e link errors after enabling pointer authentication, or Build and Analyze setup. Do not use for ATS/TLS, signing, secrets or WebView rules (capacitor-security), or App Store review (capacitor-apple-review-preflight).
---

# Capacitor iOS Security Hardening

Audit the security-relevant Xcode build settings of a Capacitor app and its native plugins, then enable them in stages the user approves. This skill changes build settings and entitlements only. It never touches web code, ATS, signing, or secrets.

## When to Use

TRIGGER when:
- The user wants to audit or harden the iOS build configuration of a Capacitor app
- The user asks about Enhanced Security, `ENABLE_ENHANCED_SECURITY`, hardened-process entitlements, pointer authentication, arm64e, or memory tagging
- After enabling Enhanced Security, the link step fails with errors that mention `arm64e`
- A plugin author wants stricter warnings or static analysis for plugin Swift/ObjC/C code
- The user wants "Build and Analyze" / `xcodebuild analyze` in CI

Do not use:
- ATS, TLS pinning, signing, secrets, WebView config, Capsec scans: `capacitor-security`
- App Store privacy manifest and review checklist: `capacitor-apple-review-preflight`
- The AppDelegate to SceneDelegate migration: `capacitor-uiscene-migration`
- Android R8, network security config: `capacitor-security`

## Facts that change the plan

- **Build settings do not cross project boundaries.** Settings on the App target do not apply to Pods (`ios/App/Pods/Pods.xcodeproj`), to SPM packages (plugins, `CapApp-SPM`), or to the Cordova plugin package that `npx cap sync` generates. Hardening plugin code is done in the plugin repo (podspec / Package.swift), not in the app.
- **The App target of a stock Capacitor app is pure Swift** (`AppDelegate.swift`, `SceneDelegate.swift`). Clang warnings and analyzer checkers only matter if the app target has `.m`, `.mm`, `.c` or `.cpp` files. Detect languages before proposing them.
- **The Capacitor 8 templates already set three Stage A warnings** at project level (`GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR`, `GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE`, `GCC_WARN_64_TO_32_BIT_CONVERSION = YES`). Report them as already hardened. Do not re-add them.
- **WKWebView content is not affected.** JavaScript and JIT run in WebKit's own processes. Enhanced Security entitlements apply to the app process and the native code linked into it (Capacitor runtime, plugins, SDKs).
- **Pointer authentication adds an `arm64e` slice** to device builds. Every binary linked into the app must also have `arm64e`, or the link fails. This is the main breakage risk in Capacitor apps. See [references/enhanced-security.md](references/enhanced-security.md).
- **Do not edit generated files.** `ios/App/Pods/**`, `Pods-App.*.xcconfig`, `ios/App/CapApp-SPM/Package.swift`, `ios/capacitor-cordova-ios-plugins/**` and `ios/debug.xcconfig` (SPM template, Debug only, CLI-managed) are rewritten by CocoaPods or `npx cap sync`. Put settings in the App project (Xcode Build Settings, which writes `project.pbxproj`) or in an xcconfig the team already owns.
- **The user owns the result.** Enhanced Security turns latent memory bugs into crashes. Report findings and get approval before changing anything. Test on real hardware before shipping.

## References

Only load a reference when its topic is in play.

| File | Load when |
|------|-----------|
...

From Cap-go's repository, MIT licence.

Related skills

  • Checked

    Android Gradle Plugin upgrade

    Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    CocoaPods to SwiftPM

    Moves Kotlin Multiplatform projects from CocoaPods to Swift Package Manager and updates the Xcode project.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    Kotlin Native build speed

    Diagnoses and fixes slow Kotlin/Native iOS builds in Kotlin Multiplatform projects, both locally and on CI.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    SwiftUI Liquid Glass

    Adds and reviews Liquid Glass in SwiftUI apps for iOS 26, avoiding pitfalls with bars, buttons and scrolling.

    by FloWritesCode 476
    8/101 credit
  • Checked

    Compose Multiplatform UI

    Builds one shared Compose UI in Kotlin for Android, iOS and desktop, so you write your screens once.

    by ericrisco 691
    7/101 credit
  • Checked

    SwiftUI Mac app rules

    Writes and debugs Swift 6 and SwiftUI code for Mac apps, fixing concurrency, state and common compiler errors.

    by daveebbelaar 2k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added