Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why I got error Build input file cannot be found when I remove the file from my download folder?

I have GoogleService-info.plist file in my project file of my app. The way I copy that file to my project is like this

I download the GoogleService-info.plist from Firebase site to my download folder on my Mac. and then I copy by dragging that file from download folder to Xcode by using this

enter image description here

and my problem is ....

when I delete the GoogleService-info.plist from the download folder on my mac, it will cause error on my Xcode project, the file is also dissappear from my project like this

enter image description here

Build input file cannot be found: '/Users/dev.adsapps/Downloads/GoogleService-Info.plist'

what went wrong in here ?

I have tried to search the answer like in this thread Problems after upgrading to Xcode 10: Build input file cannot be found but it seems the problem is little bit different

do I have the wrong way when copying the file to my project ?

I am using Xcode 10.

like image 396
Alexa289 Avatar asked Feb 07 '19 11:02

Alexa289


People also ask

How do I clean up and build in Xcode?

Clean the Build Folder To clean the build folder you can use the shortcut Command+Option+Shift+K or Menu Bar → Product → Hold Option Key → Clean build Folder .

Where is Project Navigator in Xcode?

The Project navigator displays your project's files and lets you open, add, delete, and rearrange those files. To open the Project navigator, at the top of your project window's navigator area, click the icon that resembles a file folder.


1 Answers

Look for Added folder options while adding GoogleService-Info.plist. You should select the first radio button Create groups instead of Create folder references and it will not be removed when you remove it from the other location, for now you are just referencing the item while adding it to the workspace.

Hope it helps.

like image 89
Bhavin Kansagara Avatar answered Oct 23 '22 00:10

Bhavin Kansagara