bannzai / bannzai/nikki

CloudKit スキーマを production にデプロイする (審査提出の直前に実行)

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
0
Forks
0
Avg merge
10h 28m
Merged PRs (30d)
30

Description

## 背景

SwiftData + CloudKit はスキーマを development 環境に実行時自動生成するが、**production には自動反映されない**。TestFlight / App Store ビルドは production 環境を使うため、スキーマ未デプロイのまま配布すると同期が失敗する (`docs/app-store/submission-notes.md` の「iCloud (CloudKit) スキーマ管理」節参照)。

## やること (審査提出の直前に実行する。今はやらない)

- `ios-cloudkit-schema-deploy` skill (`~/.claude/skills/ios-cloudkit-schema-deploy/SKILL.md`) で、コンテナ `iCloud.com.bannzai.Nikki` のスキーマを development から export → production に対して検証 → デプロイする
- まず plan (production との差分表示) を確認してから deploy する
- モデル (`JournalEntry` / `JournalTemplate` / ノート導入後のモデル) の変更を伴うリリースの都度、再実行が必要

## タイミング

TestFlight 配布・審査提出の直前に 1 回実行する。それまでは着手しない (このため auto-implement ラベルは付けない)。

## 完了条件

- production スキーマに development と同じレコードタイプ・フィールドが存在することを cktool の再取得で確認できる
- TestFlight ビルドで iCloud 同期が動作する

関連: #5 (公開前チェックリスト「iCloud (CloudKit) capability・コンテナ設定。development / production スキーマの管理」)

## セッション再開

```sh
cd /Users/bannzai/worktrees/bannzai/nikki/issue-5
claude --resume 20bc4e38-b5ff-46d6-83e7-06272ab14178
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the “iCloud (CloudKit) schema management” section in docs/app-store/submission-notes.md, then follow ~/.claude/skills/ios-cloudkit-schema-deploy/SKILL.md for container iCloud.com.bannzai.Nikki. Run the plan step first to inspect the production difference, then deploy at the stated release point. Done means cktool confirms matching record types and fields, and iCloud sync works in the TestFlight build.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.