bokuwalily/claude-code-skills/xcodegen-storekit2-local-test
Claude Code and agent skill by bokuwalily/claude-code-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
XcodeGen (2.45.4+) で StoreKit2 ローカルテスト設定を行うパターン。.storekit ファイルを project.yml に `storeKitConfiguration` で紐付け、実機課金なしで IAP ゲートを検証する。IAP付きiOSアプリで確立した手順。
Install
npx vskill@latest install bokuwalily/claude-code-skills/xcodegen-storekit2-local-testSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as bokuwalily/claude-code-skills/xcodegen-storekit2-local-test.
問題
StoreKit2 の IAP(in-app purchase)フローを CI / 開発中にテストしたい場合、実機 Apple ID 課金なしで動作確認するには .storekit 設定ファイルを Xcode に紐付ける必要がある。XcodeGen を使っているプロジェクトでは project.yml 経由でこの設定を行う。公式ドキュメントには XcodeGen 連携手順がほぼ存在しない。
前提
- XcodeGen ≥ 2.45.4(
storeKitConfigurationフィールドが安定サポートされたバージョン) - Xcode ≥ 15(StoreKit Testing in Xcode 対応)
.storekitファイルが既にプロジェクトルートに存在すること(なければ Xcode の File > New > StoreKit Configuration File で作成)
Procedure
1. .storekit ファイルを作成・配置する
Xcode で作成する場合: File → New → File → StoreKit Configuration File
ファイル内で IAP 商品を定義する(例: Premium 購読):
2. project.yml に storeKitConfiguration を追加する
注意点:
- キー名は
storeKitConfiguration(camelCase・スペルミス注意。storekit_configurationやstorekitConfigurationは無効) - 値はプロジェクトルートからの相対パス
scheme:の下に置く(settings.baseの下ではない)
3. XcodeGen を実行してプロジェクトを再生成する
4. Xcode で StoreKit テスト設定を確認する
- 生成された
.xcodeprojを開く - Product → Scheme → Edit Scheme → Run → Options タブを開く
- StoreKit Configuration に
Foo.storekitが自動選択されていることを確認
選択されていなければ手動でドロップダウンから選ぶ(project.yml 側の設定ミスの可能性)。
5. シミュレータで IAP をテストする
.storekit ファイルが有効な場合、シミュレータ上で購入ダイアログが表示され、「Ask to Buy」等のサンドボックス動作を確認できる。
Pitfalls
| 症状 | 原因 | 対処 | ||||
|---|---|---|---|---|---|---|
storeKitConfiguration が scheme に反映されない | XcodeGen < 2.45.4 | brew upgrade xcodegen | ||||
| ビルド後に設定が消える | xcodegen generate を忘れてた手動編集 | 必ず xcodegen generate 経由で変更する | ||||
.storekit パスが見つからない | 相対パスミス or ファイル未コミット | ls -la *.storekit で確認 | ||||
| シミュレータで IAP ダイアログが出ない | Scheme の StoreKit Configuration が未選択 | Edit Scheme → Options で手動選択 | ||||
| iPhone 16 シミュレータが存在しない | Xcode デフォルトシミュレータ未作成 | `xcrun simctl create "iPhone 16" com.apple.CoreSimulator.SimDeviceType.iPhone-16 $(xcrun simctl list runtimes | grep iOS | tail -1 | awk '{print $NF}')` |
Verification
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/xcodegen-storekit2-local-test/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bokuwalily/claude-code-skills/xcodegen-storekit2-local-test)