If you're building iOS apps that need to scan NFC tags, this covers the CoreNFC framework from basic NDEF reads to tag-specific protocols like ISO7816 and MIFARE. You'll find working examples for both simple use cases (reading a URL from a tag) and advanced scenarios (writing NDEF messages, handling background tag reading). The setup section walks through the entitlements and Info.plist configuration that always trips people up on first implementation. Targets Swift 6.3 and iOS 26+, which is forward-looking but the patterns hold for earlier versions. The code samples show proper session lifecycle management and error handling, which matters because NFC sessions fail in weird ways if you don't invalidate them correctly.

skills.sh installs
3.8K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill core-nfc --agent claude-code

Installs into .claude/skills of the current project.

Files

CoreNFC

Read and write NFC tags on iPhone using the CoreNFC framework. Covers NDEF reader sessions, tag reader sessions, NDEF message construction, entitlements, and background tag reading.

Contents

Setup

Project Configuration

  1. Add the Near Field Communication Tag Reading capability in Xcode
  2. Add NFCReaderUsageDescription to Info.plist with a user-facing reason string
  3. Add the com.apple.developer.nfc.readersession.formats entitlement with the current TAG value; do not add legacy NDEF
  4. For ISO 7816 tags, add supported application identifiers to com.apple.developer.nfc.readersession.iso7816.select-identifiers in Info.plist
  5. For FeliCa tags, add supported system codes to com.apple.developer.nfc.readersession.felica.systemcodes; do not use wildcard system codes

Device Requirements

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Documentation, Release Management, Mobile Development
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1dotnet avatarplan-ui-changedotnet/skillsPlan complex Blazor UI features by decomposing them into focused components. USE FOR: building a complex Blazor page with multiple sections, planning component 3.7Kskills.sh installs
2shubhamsaboo avatardeep-researchshubhamsaboo/awesome-llm-appsComprehensive research assistant that synthesizes information from multiple sources with citations. Use when: conducting in-depth research, gathering sources, w3.7Kskills.sh installs
3dotnet avatarextension-pointsdotnet/skillsGuide for MSBuild extensibility: CustomBefore/CustomAfter hooks, wildcard imports with alphabetic ordering, import gating with control properties, NuGet package3.7Kskills.sh installs
4dpearson2699 avatarenergykitdpearson2699/swift-ios-skillsQuery grid electricity forecasts and submit load events using EnergyKit to help users optimize home electricity usage. Use when building smart home apps, EV cha3.7Kskills.sh installs
5cloudflare avatarbuilding-ai-agent-on-cloudflarecloudflare/skillsBuilds AI agents on Cloudflare using the Agents SDK with state management, real-time WebSockets, scheduled tasks, tool integration, and chat capabilities. Gener3.7Kskills.sh installs
6shubhamsaboo avatarux-designershubhamsaboo/awesome-llm-appsExpert UX design assistance for user research, wireframing, prototyping, and design strategy. Use when: creating wireframes, conducting user research, building 3.7Kskills.sh installs