Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode build fails during Firebase setup #33

Closed
arnaugomez opened this issue Jan 29, 2024 · 4 comments
Closed

XCode build fails during Firebase setup #33

arnaugomez opened this issue Jan 29, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@arnaugomez
Copy link
Contributor

arnaugomez commented Jan 29, 2024

Environment

Package version: 0.0.1+202304051
Platform: iOS
Device information: iPhone SE Simulator

Description

This was a very frequent bug in a project that used the react_base (Imaweb). It was fixed by Adri, and now I want to apply the fix to the react_base.

Expected behavior:
XCode compilation is successful

Current behavior:
App does not compile (see stack trace below)

Steps to reproduce

  1. Run app with Xcode 15.1 iPhone SE Simulator

Stacktrace/Logcat

Launching lib/main_dev.dart on iPhone SE (3rd generation) in debug mode...
main_dev.dart:1
Xcode build done.                                           56.2s
Failed to build iOS app
Error (Xcode): Build input file cannot be found: '/Users/arnau/Desktop/work/flutter_base/ios/Runner/GoogleService-Info.plist'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?

Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).
@arnaugomez arnaugomez added the bug Something isn't working label Jan 29, 2024
@arnaugomez
Copy link
Contributor Author

This bug was fixed in the Imaweb project but it is not fixed here. I am going to make a PR that fixes this bug.

@arnaugomez arnaugomez changed the title XCode compilation does not work and crashes during Firebase setup XCode build fails during Firebase setup Jan 29, 2024
@arnaugomez arnaugomez self-assigned this Jan 29, 2024
@ghost
Copy link

ghost commented Jan 29, 2024

ohk @arnaugomez so first of all you need to download GoogleService-Info.plist file from Firebase when you are enabling ios Authentication . Then open the downloaded file copy and paste in your project ios/Runner/GoogleService-Info.plist in your project path then close the project and start new launch

@hazzo
Copy link
Contributor

hazzo commented Jan 29, 2024

@arnaugomez what is the bug?. GoogleServices-Info.plist are not supposed to be uploaded here because this is a public repository.

@arnaugomez
Copy link
Contributor Author

@hazzo The purpose of this issue is not to commit GoogleServices-Info.plist (I have not done that). Instead, it is to fix the XCode build so that it works on Xcode 15.1. See my pr #34 for the solution.

@hazzo hazzo closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants