Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

iOS runner build ignores `-derivedDataPath` when Xcode uses a custom build location

クローズ 初心者向け
#3,296 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
ios, typescript

調査の方向性

packages/platform-apple/src/runner/runner-cache-metadata.tsから始めてRUNNER_SANDBOX_BUILD_ARGSを調べ、これらの引数がどのようにrunnerのビルドに渡されるかを追ってください。提示されたXcodeのカスタムビルド場所の設定とagent-device prepare ios-runner --platform iosを使って再現してください。runnerのビルドが、期待されるDerived Dataのパスにある.xctestrunを見つけられれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Version: agent-device 0.21.19, Xcode 27 beta, macOS

What happens

When Xcode's global preference sets a custom build location, prepare ios-runner (and the first open on iOS) fails:

Failed to locate .xctestrun after build

Xcode writes the runner products relative to the runner project (dist/apple/runner/AgentDeviceRunner/Build/...) instead of the derived data path that agent-device passes. Parallel attempts can also fail with database is locked.

How to reproduce

defaults write com.apple.dt.Xcode IDEBuildLocationStyle Custom
defaults write com.apple.dt.Xcode IDECustomBuildLocationType RelativeToWorkspace
defaults write com.apple.dt.Xcode IDECustomBuildProductsPath Build/Products
agent-device prepare ios-runner --platform ios

Cause

IDEBuildLocationStyle=Custom takes precedence over -derivedDataPath for build products. Teams use this setting so that Xcode and command-line tools share one products folder.

Suggested fix

Add -IDEBuildLocationStyle=Unique to the runner build arguments, for example in RUNNER_SANDBOX_BUILD_ARGS (packages/platform-apple/src/runner/runner-cache-metadata.ts). With this argument the runner builds into the agent-device derived data path again. We verified the change locally by patching dist/src/runner-cache-metadata.js: prepare ios-runner then succeeds.

An alternative is an environment variable for extra xcodebuild arguments.

主要言語
TypeScript
スター
4.9k
フォーク
328
平均マージ
12時間 16分
マージ済み PR(30日)
538

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstack/agent-device のほかの issue

callstack/agent-device の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。