XCode error: Build input file cannot be found: '/Users/anonym/Downloads/GoogleService-Info.plist'"
Asked Answered
P

4

6

With XCode i copied the GoogleService-Info.plist in the Runner folder, closed XCode and delete GoogleService-Info.plist from the downloads folder. Now XCode is unable to build the application because the GoogleService-Info.plist is not in the download folder?

Any ideas? Thanks

Phyfe answered 15/8, 2022 at 10:33 Comment(1)
I had exactly the same problem. here is what i did. I copied the file in runner without XCode then I open xcode and I drag the file again, massaging to check the copy item if needed box. Then I do a clear then I launch the application and it works for me.Paulie
T
16

Right click on the Runner -> select add files to runner -> select the Googleservices-info.plist file.

Make sure the copy files if needed is checked that way it copies the file from downloads folder to the project. Now you can close Xcode and delete the file from Downloads folder.

Go to product -> clean build folder.

Then run pod install once and build the project. It should work as expected.

preview

Threequarter answered 15/8, 2022 at 10:58 Comment(0)
S
6

open your

ios/Runner.xcodeproj/project.pbxproj

file and find the line with

... GoogleService-Info.plist ...

in the same line it should say something along the line of

 path = "/Users/anonym/Downloads/GoogleService-Info.plist"

change it to the relativ path of your GoogleService-Info.plist file. In my case that was:

 path = "Runner/GoogleService-Info.plist"
Shostakovich answered 12/12, 2022 at 20:3 Comment(0)
A
0

That means that referencing to the GoogleService-Info.plist file which is not in download folder. Please follow this to add it correctly for iOS https://www.kindacode.com/article/flutter-correctly-adding-googleservices-info-plist-to-ios/

Ardellearden answered 15/8, 2022 at 10:36 Comment(1)
Did not worked either, i have to set option "Copy items if needed", no it works. Anyway thank you!Phyfe
D
0

from VSCode, open the project.pbxprojfile in ios/Runner.xcodeproj/project.pbxproj

find : path = “../../../GoogleService-Info.plist"

change to : path = “Runner/GoogleService-Info.plist”

Diplocardiac answered 4/9 at 3:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.