Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Build input file cannot be found' Swift 4.2, Xcode 10.0

I am getting the following error when building in Xcode 10.0 with swift 4.2:

This is the error

like image 867
Robbie Cronin Avatar asked Sep 21 '18 00:09

Robbie Cronin


2 Answers

Moving the folders around the inspector can cause the error "Build input file cannot be found"

SWIFT 5

In Swift 5, the error came up but the identity showed no errors.

  • Go under build settings and select packaging.
  • Delete the current paths for Debug and Release and enter your new path where the info.plist is kept.

For example [APPROJECTNAME]/[THEINFOPLISTFOLDER]/info.plist In the screenshot below, the path is API-client/Resources/info.plist

enter image description here

SWIFT 4

To fix it, go to the general tab and under identity reselect the info.plist that you like

enter image description here

enter image description here

I hope this helps

like image 118
STerrier Avatar answered Oct 15 '22 09:10

STerrier


Build input file cannot be found

How To fix This issue :

  1. Go in the project-navigator, select your project

  2. Select Build Phases tab

  3. In Compile Sources section, check for the file(s) that Xcode is demanding of

  4. Notice that the file(s) have the wrong path, and delete them by clicking on the minus icon

  5. Re-add the file(s) by clicking the plus icon and search in the project.

  6. Product > Clean Build Folder

  7. Build

like image 36
M Murteza Avatar answered Oct 15 '22 09:10

M Murteza