0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Expo / EAS】eas build後に作成されたeas.jsonが削除できなくなった時の対処法

0
Posted at

はじめに

eas build --platform ios --profile development を実行すると、プロジェクト直下に eas.json が自動生成されます。

しかし、Git管理しているプロジェクトでこの eas.json が差分に上がっているのに削除できなくなることがあります。

今回はそのときの対処法をまとめます。

発生する状況

以下のコマンドを実行:

eas build --platform ios --profile development

すると eas.json が作成されます。
Screenshot 2026-02-17 at 18.27.30.png

その後、

「やっぱりこのファイルは不要」

「git管理したくない」

「間違って生成された」

などの理由で削除しようとすると…

❗ 問題発生

FinderやVSCodeで削除しても差分が消えない

変更破棄ボタンが押せない

Git上で削除扱いにならない

という状態になることがあります。

〜原因〜

Gitがそのファイルを未追跡(Untracked)状態として扱っているため、

「変更破棄」ではなく

「追加 or 無視」扱い

になっていることが原因です。

解決方法
✅ 手順

まず差分の eas.json を ステージングする
Screenshot 2026-02-17 at 18.49.04.png

その後、差分に戻す(Unstageする)

変更破棄ボタンを押す
Screenshot 2026-02-17 at 18.28.12.png

これで正しく削除できます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?