Repository navigation
Hotfix: App Store審査で指摘されたマイク用途文字列をInfoPlist.stringsから削除 - #6597
Merged
Merged
Conversation
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KaeLArTZHG4nWMMYTR5rg1
This was referenced Aug 7, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
App Store の自動審査で
NSMicrophoneUsageDescriptionが「プレースホルダーまたは不十分な用途説明」として指摘された件の、本番向け緊急対応です。master(v10.11.4)にも同じ文字列が残っているため、git-flow に従いmasterからhotfix/*を切って対応しました。あわせて審査再提出のため、バージョンを v10.11.4 から v10.11.5 へ引き上げています。
dev向けの文字列削除は #6596 で別途対応しています。本 PR はそれを本番系へ先行投入し、リリース可能な状態まで仕上げるものです。指摘された文言は以下の通りで、内容自体が「使用しません」という宣言になっており、用途説明として成立していませんでした。
"This app does not require access to the microphone.""このアプリはマイクを使用しません。"変更の種類
変更内容
本 PR は 2 コミットで構成されています。
1. マイク用途文字列の削除
ios/en.lproj/InfoPlist.stringsからNSMicrophoneUsageDescriptionの行を削除ios/ja.lproj/InfoPlist.stringsからNSMicrophoneUsageDescriptionの行を削除2. バージョンの引き上げ(v10.11.5)
npm run version:bump -- patchを実行し、スクリプトが更新する 5 ファイルをそのままコミットしています。手書きでの編集は行っていません。対象ファイルは
app.config.ts、package.json、package-lock.json、android/app/build.gradle、ios/TrainLCD.xcodeproj/project.pbxprojの 5 点で、直近のv10.11.4 をリリースコミットと同一の構成です。project.pbxprojの差分はMARKETING_VERSIONとCURRENT_PROJECT_VERSIONの 2 キーのみで、ビルド設定そのものへの変更は含みません。調査結果(マイク不使用の根拠)
コードベース全体を確認し、マイクを利用する実装が存在しないことを確認しました。
expo-audioは導入済みだが、使用箇所はsrc/hooks/useTTS.tsのsetAudioModeAsyncのみ。同呼び出しではallowsRecording: falseを明示しているuseAudioRecorder/AudioRecorder/requestRecordingPermission/RecordingPresetsの参照は 0 件expo-speech-recognition、@react-native-voice/voice等)は未導入expo-speechは TTS(音声出力)専用RECORD_AUDIOの記述はなく、app.config.tsのandroid.permissionsは空配列Info.plist(Prod / Dev の両スキーム)にNSMicrophoneUsageDescriptionキーは存在しないなお
UIBackgroundModesのaudioは TTS のバックグラウンド読み上げ用であり、マイクとは無関係です。混入経緯
app.config.tsのpluginsにexpo-audioが指定されており、同プラグインは既定でNSMicrophoneUsageDescriptionを注入する実装になっています(plugin/build/withAudio.js)。ただし本リポジトリはios/をコミット済みの bare プロジェクトとして管理しており、CI(ios/ci_scripts/ci_post_clone.sh)もnpm ciとpod installのみで prebuild を実行していないため、このプラグインによる注入は実際には適用されていません。過去に手動で追記されたものが残っていたと考えられます。影響範囲
Info.plistに本体キーが存在しないため、文字列削除による実行時の挙動変化はありません。iOS はまずInfo.plistのキーを参照し、その上でInfoPlist.stringsによる上書きを探す仕様のため、本体キーのない翻訳エントリは元々参照されていませんでした。今回の削除により、App Store のバンドル走査で拾われる箇所がなくなります。リグレッションリスクと緩和策
リスクは低いと判断しています。ロジック変更は一切含まず、差分は参照されていないローカライズ文字列の削除とバージョン採番のみです。
npm run version:bumpの出力をそのまま採用しており、5 ファイル間の値の齟齬は発生しません想定される唯一の懸念として、
expo-audioのネイティブコードが録音 API(AVAudioRecorder 系)を参照しているため、将来 Apple のバイナリ走査で逆にITMS-90683: Missing purpose stringが発生する可能性が理論上あります。その場合は削除ではなく、Info.plistへ本体キーを追加した上で正確な用途文言を設定する対応に切り替える必要があります。次回の提出結果で確認可能です。テスト
origin/masterから切ったブランチ上で、バンプ適用後に以下を実行し、すべて成功することを確認しました。npm run lintが通ること —Checked 606 files in 790ms. No fixes applied.npm testが通ること —Test Suites: 203 passed, 203 total/Tests: 2179 passed, 2179 totalnpm run typecheckが通ること — エラーなし実行コマンド:
git checkout -b hotfix/microphone-usage-description origin/master npm ci npm run version:bump -- patch npm run lint npm test npm run typecheckなお文字列削除のみの時点(バンプ前)でも同一の 3 コマンドが成功することを確認済みです。
関連Issue
なし(App Store Connect の審査指摘に基づく対応)。
dev向けの同一修正は #6596。スクリーンショット(任意)
UI 変更はないため添付なし。