結論com.apple.developer.alarmkit は.entitlements に
症状
シミュレータでは
Provisioning profile "..." doesn't include the com.apple.developer.alarmkit entitlement.
Developer ポータルで
なぜ起きるか
このNSAlarmKitUsageDescription、com.apple.developer.alarmkit: true を
Apple Developer Forums の
AlarmKit が実際に必要とするもの
- Deployment Target iOS 26.0 以上。 AlarmKit は
iOS 26 の 新 API で、 バックポートは ありません。 NSAlarmKitUsageDescriptionをInfo.plist に。 xcodebuild -exportLocalizationsはこの キーを 抽出しないので、 各 InfoPlist.stringsに手で 翻訳を 入れます。 AlarmManager.shared.requestAuthorization()を登録前に 実行時に 呼ぶ。 先に authorizationStateを見て、 .deniedなら設定アプリへ 誘導する しか ありません。 - 任意で
Widget Extension。 AlarmKit が カウントダウン中・ 鳴動中に 出す Live Activity 用です。 AlarmMetadataの型は アプリと Extension の 両ターゲットに 入れないと Live Activity が 復号できません。
直し方
<!-- YourApp.entitlements: このブロックをまるごと削除 -->
<key>com.apple.developer.alarmkit</key>
<true/>
ビルドフォルダを
関連
長い版の
題材の
カレンダーに