Repository navigation
プリセットウィジェットの行でframeの引数が不正だったiOSビルドエラーを修正 - #6592
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BDW7RJ65d5VQbVfu8o22ei
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changesウィジェットレイアウト
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Member
Author
|
@coderabbitai review |
Contributor
✅ Action performedReview finished.
|
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.
概要
iOS Canary ビルド(Archive)が Swift のコンパイルエラーで失敗していたため修正します。
失敗ジョブ: https://github.com/TrainLCD/MobileApp/actions/runs/31142560227/job/92755311004
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 エラーでビルドが中断された巻き添えであり原因ではありません。変更の種類
変更内容
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