質問するログイン新規登録

質問編集履歴

7

内容の更新

2021/12/14 03:28

投稿

Risney
Risney

スコア148

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,5 @@
1
1
  ### 前提・実現したいこと
2
- 本エラーの解消し、ビルドしたい。
2
+ 本エラーの解消し、シミュレーションでビルドしたい。
3
3
  宜しくお願いいたします。
4
4
 
5
5
  ### 発生している問題・エラーメッセージ

6

試したことの追加

2021/12/14 03:28

投稿

Risney
Risney

スコア148

title CHANGED
File without changes
body CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  ### 発生している問題・エラーメッセージ
6
6
 
7
+ Xcode:Xcode13.2
8
+ Swiift:4.2
9
+
7
10
  ```
8
11
  Build input file cannot be found: '/Users/UserName/Library/Developer/Xcode/DerivedData/SampleProject-fuzdquvhhshlnmguqhumxoubxxma/Build/Products/Debug-iphonesimulator/SampleProject.app/SampleProject'
9
12
 
@@ -11,7 +14,7 @@
11
14
  ビルド入力ファイルが見つかりません: '/ Users / UserName / Library / Developer / Xcode / DerivedData / SampleProject-fuzdquvhhshlnmguqhumxoubxxma / Build / Products / Debug-iphonesimulator / SampleProject.app / SampleProject'
12
15
  ```
13
16
 
14
- ### 試したこと①
17
+ ### 試したこと①:エラー内容のパスを辿る
15
18
  エラーに表示されているパスを辿って確認してみたのですが、
16
19
  SampleProject.appの以下に階層は続いていないので、
17
20
  なぜそこを参照しようとしているのか謎でした。
@@ -34,20 +37,54 @@
34
37
  ・参照しようとしているパスが変更されたのか
35
38
  ・どこの設定で参照しているのか
36
39
 
40
+
37
- ### 試したこと②
41
+ ### 試したこと② by teratail類似質問
38
- [Xcode build input file cannot be found](https://teratail.com/questions/202783)
42
+ [Xcode build input file cannot be found](https://teratail.com/questions/202783)
39
- > 引用テキストエラー原因が同じかはわかりませんが、
43
+ > エラー原因が同じかはわかりませんが、
40
44
  私の場合は、Build PhaseのCompile Sourceからそのファイルを削除し、再度登録し直すことで解決できました。
41
45
 
42
46
  上記teratailの質問を参考に、Build PhaseのCompile Sourceから探しましたが、SampleProject.appはみつからず。
43
47
  ![イメージ説明](63e42c4fee84a8ac89a5322a089ce9e8.png)
44
48
 
49
+ 上記と同様にCompile Sourceに関連する記事
50
+ ・[XCode:gitブランチを切り替えるとerror: Build input file cannot be found](https://zw-kakeru.com/tips/xcode-build-branch-error/)
51
+ ・[「Build input file cannot be found」となったときの対処法](https://qiita.com/shuntarou/items/34d048edb981496a4019)
52
+
45
- ### 補足情報(FW/ツールバージョンなど)
53
+ ### 試したこと③ by teratail類似質問
54
+ ・[【Xcode】Build input file cannot be foundの解決方法](https://teratail.com/questions/351883)
55
+
56
+ > Any iOS Device はAppStoreにアップロードする時専用のものです。
57
+ 通常は確認したいデバイスを選択してBuildします。
58
+
46
- 参考にしたページ
59
+ 上記teratail質問を参考にしましが、
60
+ 状況が自分とは異なる為、解決ならず。
61
+
62
+
63
+ ### 試したこと④ by teratailの類似質問
64
+ [Build input file cannot be foundのエラーを消したいです](https://teratail.com/questions/256442)
65
+
66
+ 上記teratailの質問を参考にinfo.plist Fileにplistへのパスを追加しましたが、解決ならず。
67
+ 一度削除→クリーンビルド→再度設定しビルドしてもダメです。
68
+ ![イメージ説明](d4b984768d195451a106ac20653a3f96.png)
69
+
70
+ 上記同様の記事
71
+ ・[Build input file cannot be found と言われた時の対処法](https://qiita.com/gaipoi/items/8674743a0cbe9bcb17f7)
72
+
73
+ ### 試したこと⑤ by teratailの類似質問
74
+ ・[Build input file cannot be found: ''](https://teratail.com/questions/271203)
75
+ > choosese.info.plist.fileを選択して、info.plistを指定する。
76
+
77
+ 上記teratailの質問を参考にしましたが、
78
+ 自分の環境だとchoosese.info.plist.fileを選択する画面がないので、解決ならず。
79
+ ![イメージ説明](02b2a30b355de9b390602b3a819c116f.png)
80
+
81
+
82
+ 上記と同様にinfo.plistに関連する記事
47
83
  ・[【Xcode】Xcode11 error: Build input file cannot be found: 'Info.plist’が出たときの対処法](https://www.hfoasi8fje3.work/entry/2020/01/11/160922)
48
- ・[XCode:gitブランチを切り替えるとerror: Build input file cannot be found](https://zw-kakeru.com/tips/xcode-build-branch-error/)
49
84
  ・[【Xcode】「Build input file cannot be found」となった時の対処法](https://yamamtoblog.com/build-input-file-cannot-be-found/)
85
+
86
+ ### 補足情報(FW/ツールのバージョンなど)
87
+ その他参考にしたが、まだ試していない記事
88
+ ・[Build input file cannot be found:Swiftエラー](https://teratail.com/questions/248664)(未解決で止まっている)
50
89
  ・[Xcode開発で「Build input file cannot be found」エラーが発生したとき](https://aqlier.com/2019/04/22/xcode_build-input/)
51
- ・[Build input file cannot be found と言われた時の対処法](https://qiita.com/gaipoi/items/8674743a0cbe9bcb17f7)
52
- ・[「Build input file cannot be found」となったときの対処法](https://qiita.com/shuntarou/items/34d048edb981496a4019)
53
90
  ・[「ビルド入力ファイルが見つかりません」Appleデベロッパーフォーラム](https://developer-apple-com.translate.goog/forums/thread/116142?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc)

5

内容の更新

2021/12/08 10:45

投稿

Risney
Risney

スコア148

title CHANGED
File without changes
body CHANGED
@@ -29,6 +29,11 @@
29
29
  しかし`SampleProject.app`内に`SampleProject`というファイルは存在せず。
30
30
  ![イメージ説明](37f242f492d6b79354a4ff3490937e4b.png)
31
31
 
32
+ 確かに「ファイルが存在しない。」からエラーになっているのはわかりましたが、以下が不明です。
33
+ ・そもそもこのファイルが元々ここにあったのか
34
+ ・参照しようとしているパスが変更されたのか
35
+ ・どこの設定で参照しているのか
36
+
32
37
  ### 試したこと②
33
38
  [Xcode build input file cannot be found](https://teratail.com/questions/202783)
34
39
  > 引用テキストエラー原因が同じかはわかりませんが、

4

発生している問題の更新

2021/12/08 04:51

投稿

Risney
Risney

スコア148

title CHANGED
File without changes
body CHANGED
@@ -4,9 +4,11 @@
4
4
 
5
5
  ### 発生している問題・エラーメッセージ
6
6
 
7
- 下記パスにビルド入力ファイルが見つからないそうです。
8
7
  ```
9
8
  Build input file cannot be found: '/Users/UserName/Library/Developer/Xcode/DerivedData/SampleProject-fuzdquvhhshlnmguqhumxoubxxma/Build/Products/Debug-iphonesimulator/SampleProject.app/SampleProject'
9
+
10
+ //和訳
11
+ ビルド入力ファイルが見つかりません: '/ Users / UserName / Library / Developer / Xcode / DerivedData / SampleProject-fuzdquvhhshlnmguqhumxoubxxma / Build / Products / Debug-iphonesimulator / SampleProject.app / SampleProject'
10
12
  ```
11
13
 
12
14
  ### 試したこと①

3

内容の修正

2021/12/07 08:51

投稿

Risney
Risney

スコア148

title CHANGED
File without changes
body CHANGED
@@ -27,7 +27,7 @@
27
27
  しかし`SampleProject.app`内に`SampleProject`というファイルは存在せず。
28
28
  ![イメージ説明](37f242f492d6b79354a4ff3490937e4b.png)
29
29
 
30
- ### 試したこと
30
+ ### 試したこと
31
31
  [Xcode build input file cannot be found](https://teratail.com/questions/202783)
32
32
  > 引用テキストエラー原因が同じかはわかりませんが、
33
33
  私の場合は、Build PhaseのCompile Sourceからそのファイルを削除し、再度登録し直すことで解決できました。

2

試したことの追加

2021/12/07 06:55

投稿

Risney
Risney

スコア148

title CHANGED
File without changes
body CHANGED
@@ -18,7 +18,16 @@
18
18
  またSampleProject.appをダブルクリックしたところ以下のエラーで開けず
19
19
  ![イメージ説明](a1eb83ea81f2e5845d84c649b60dacdd.png)
20
20
 
21
+ 【追記】
22
+ 上記ファイルはダブルクリックでは開けませんでしたが、
23
+ 以下の方法で中身を確認することができました。
24
+ 右クリック > パッケージの内容を表示
25
+ ![イメージ説明](74776a9b4a206b5291d216c55bcba2f5.png)
26
+
27
+ しかし`SampleProject.app`内に`SampleProject`というファイルは存在せず。
28
+ ![イメージ説明](37f242f492d6b79354a4ff3490937e4b.png)
29
+
21
- ### 試したこと
30
+ ### 試したこと
22
31
  [Xcode build input file cannot be found](https://teratail.com/questions/202783)
23
32
  > 引用テキストエラー原因が同じかはわかりませんが、
24
33
  私の場合は、Build PhaseのCompile Sourceからそのファイルを削除し、再度登録し直すことで解決できました。

1

タイトルの変更

2021/12/07 06:55

投稿

Risney
Risney

スコア148

title CHANGED
@@ -1,1 +1,1 @@
1
- Build input file cannot be found: '/path/fileName'
1
+ Build input file cannot be found: '/path/XXX.app'
body CHANGED
File without changes