Skip to content

プリセットウィジェットの行でframeの引数が不正だったiOSビルドエラーを修正 - #6592

Merged
TinyKitten merged 1 commit into
devfrom
claude/ios-build-failure-bnbxtg
Aug 7, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/ios-build-failure-bnbxtg

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

概要

iOS Canary ビルド(Archive)が Swift のコンパイルエラーで失敗していたため修正します。

失敗ジョブ: https://github.com/TrainLCD/MobileApp/actions/runs/31142560227/job/92755311004

ios/RideSessionActivity/PresetsWidget.swift:205:41: error: extra argument 'height' in call
    .frame(maxWidth: .infinity, height: rowHeight, alignment: .leading)

SwiftUI の frame には frame(width:height:alignment:)(固定サイズ)と frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)(可変サイズ)の 2 つのオーバーロードしかなく、maxWidth と height を混在させることはできません。PresetsWidgetRow に行高さ固定を入れた際に混ざったものです。

なお ** ARCHIVE FAILED ** に併記されていた UMAppLoader の "Failed frontend command" は、この Swift エラーでビルドが中断された巻き添えであり原因ではありません。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • ios/RideSessionActivity/PresetsWidget.swift の PresetsWidgetRow で、存在しない frame(maxWidth:height:alignment:) を呼んでいたのを frame(maxWidth:minHeight:maxHeight:alignment:) に置き換え(minHeight / maxHeight を両方 rowHeight にして、横は可変・縦は固定という元の意図を維持)
  • 混同しやすい箇所のためインラインコメントを追記

PresetsWidgetEntryView.rowCount(for:) が「行の高さは rowHeight で固定」を前提に表示件数を算出しているため、.frame(maxHeight:) のみ指定するような高さが可変になる書き方は避けています。行の描画サイズは修正前の意図どおり rowHeight 固定のままで、レイアウト上の見た目の差分はありません(修正前はそもそもコンパイルが通っていません)。

同種の不正な frame 呼び出しが他に無いか ios/**/*.swift を横断確認しましたが、本件 1 箇所のみでした。

回帰リスク: 変更は当該ウィジェット行 1 箇所の frame 修飾子に限定され、JS/TS 側には影響しません。この環境(Linux、Xcode なし)では Swift のコンパイル検証ができていないため、最終確認は CI の iOS ビルドで行う必要があります。

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

実行結果:

  • npm run lint → Checked 624 files, エラーなし
  • npm test → 212 suites / 2219 tests すべてパス
  • npm run typecheck → エラーなし

Swift 側の検証は CI の iOS ビルドに委ねています。

関連Issue

スクリーンショット(任意)


Generated by Claude Code

Summary by CodeRabbit

  • 改善
    • プリセットウィジェットの行レイアウトを調整しました。
    • 横幅が変動する場合でも、高さを適切に維持し、表示が安定するようになりました。

@github-actions github-actions Bot added the ios label Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9358600c-d6a1-4afe-b3ef-44ba73a934b6

📥 Commits

Reviewing files that changed from the base of the PR and between 55dd79f and e47a0cf.

📒 Files selected for processing (1)
  • ios/RideSessionActivity/PresetsWidget.swift

📝 Walkthrough

Walkthrough

PresetsWidgetRowのフレーム指定を更新しました。可変幅を維持し、最小高さと最大高さにrowHeightを設定します。

Changes

ウィジェットレイアウト

Layer / File(s) Summary
行フレーム指定の更新
ios/RideSessionActivity/PresetsWidget.swift
PresetsWidgetRowの幅を可変にし、最小高さと最大高さをrowHeightで固定します。

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

うさぎが跳ねて、行を整える
幅は伸びても、高さは一定
最小と最大、同じ値
ウィジェットは静かに揃う
ぴょん、と表示完了

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed タイトルは、PresetsWidgetRowの不正なframe引数によるiOSビルドエラーの修正内容を明確に示しています。
Description check ✅ Passed 概要、変更内容、変更種別、テスト結果、関連Issue、任意項目を含み、修正内容とSwift検証の制約も明確です。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/ios-build-failure-bnbxtg

Comment @coderabbitai help to get the list of available commands.

@TinyKitten TinyKitten self-assigned this Aug 7, 2026
@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TinyKitten
TinyKitten merged commit 75be6a6 into dev Aug 7, 2026
4 checks passed
@TinyKitten
TinyKitten deleted the claude/ios-build-failure-bnbxtg branch August 7, 2026 04:09
This was referenced Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants