LoginSignup
6
5

More than 3 years have passed since last update.

「Build input file cannot be found」となったときの対処法

Posted at

表題の通り、コンフリクトを修正後にビルドした際にに以下のようなエラーメッセージが出力されました。

error: Build input file cannot be found: '/{path}/xxx.swift' (in target '{target_name}' from project '{project_name}')

原因

xxx.swiftの置いてあるpathが間違っていました。
私の場合、R.generated.swiftが本来リソース管理用のディレクトリに置いてあるはずが、
プロジェクトのrootディレクトリにあるのが原因でした。

解決法

buildPhase => Compile Sourceで該当のファイルを探します。
期待しているpathとは異なっているので正しいパスに修正を行います。

ファイル名

以上です。無事にビルドが成功しているのではないでしょうか。

少しでも参考になりましたら幸いです😌

6
5
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
6
5