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

Not able to build project #21

Closed
SagarPanwala opened this issue Jun 27, 2019 · 36 comments
Closed

Not able to build project #21

SagarPanwala opened this issue Jun 27, 2019 · 36 comments
Labels
help wanted Extra attention is needed

Comments

@SagarPanwala
Copy link

I'm trying to run app in iPhone Simulator, but getting an error in console. I'm trying to run in VS Code.

Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done. 652.6s
5.11.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure]; (FirebaseApp.configure() in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
5.11.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
5.11.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
*** First throw call stack:
(
0 CoreFoundation 0x000000010d0776fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010c623ac5 objc_exception_throw + 48
2 CoreFoundation 0x000000010d077555 +[NSException raise:format:] + 197
3 Runner 0x0000000103bd8373 +[FIRApp configure] + 467
4 Runner 0x0000000104001679 -[FLTCloudFirestorePlugin init] + 185
5 Runner 0x0000000104001529 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297
6 Runner 0x0000000103a3ff03 +[GeneratedPluginRegistrant registerWithRegistry:] + 115
7 Runner <…>
Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:52851/gO3UF1Oy36Q=/ws
Exited (sigterm)

@SagarPanwala
Copy link
Author

Guys, Can anyone please help me on this ? I'm getting 1k+ error at compile time. I'm new to flutter and I'm running code in VS Code.

@X-Wei
Copy link
Owner

X-Wei commented Jul 7, 2019

This is probably due to latest dependency packages requires androidX, but the project didn't (issue #19). Hopefully with my commits today this should be resolved.

Feel free to re-open the issue if it still doesn't work.

@X-Wei X-Wei closed this as completed Jul 7, 2019
@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 8, 2019

I'm still not able to build the project. Can we setup up quick discussion to make this work ?
I want to start learning quickly, but I got stuck here. I did study code, but not able to make project build. I'm not sure if this image can make it is easy to understand the issue.
Screenshot 2019-07-08 at 5 47 26 PM

@X-Wei
Copy link
Owner

X-Wei commented Jul 8, 2019

I saw that you are using an iPhone emulator, unfortunately I don't have the ios development environment.

The file you are opening might not be the right one: it's not the "lib" subdir under ios/App.framework/flutter_assets, instead, it should be the "lib" folder at the root level of the repo.

Maybe re-clone the latest version of this repo, do flutter clean, and try to run the app again.

Also you are using flutter 1.5.4, maybe do a flutter upgrade for more fresh flutter SDK.

@SagarPanwala
Copy link
Author

I'm actually not opening any file, I just try to build the project and VS Code throws these many errors, so I click on an error and send you image.

I did flutter clean and flutter upgrade too, but did not work, so I again moved to stable channel.
Let me know if you have any other input.
Thanks for your help till now.

@SagarPanwala
Copy link
Author

I try to build for Android and android also gives me following error

Launching lib/main.dart on YU5530 in debug mode...

  • Error running Gradle:
    ProcessException: Process "/Users/sagarpanwala/Projects/Flutter_Catalog/android/gradlew" exited abnormally:
    Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/sagarpanwala/Projects/Flutter_Catalog/android/app/build.gradle' line: 64

  • What went wrong:
    A problem occurred evaluating project ':app'.

path may not be null or empty string. path='null'

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3m 8s
Command: /Users/sagarpanwala/Projects/Flutter_Catalog/android/gradlew app:properties
Please review your Gradle project setup in the android/ folder.
Exited (sigterm)

@X-Wei
Copy link
Owner

X-Wei commented Jul 8, 2019

Oh for that gradlew one it's because the missing key.properties file, cf. #17 (comment)

@SagarPanwala
Copy link
Author

Can any one please help me to build Android and iOS project ?

@SagarPanwala
Copy link
Author

@X-Wei : Did you find solution to build iOS project ?

@X-Wei
Copy link
Owner

X-Wei commented Jul 11, 2019

I don't have a mac book thus can't debug the iOS build issues.
But @pravindodia has implemented the releasing of iOS app (#3), maybe he can help.

@pravindodia
Copy link

pravindodia commented Jul 11, 2019

@SagarPanwala @X-Wei I will check by taking a new pull request and see if I find the same issue as @SagarPanwala , if I will be able to replicate it, I will help you to resolve it.
Though when we build and released it we didn't face the issue.
But will get back to you on it soon.
Just for my info you used VSCode to build the project right ?
I mean the steps to replicate your issue.

  1. create a pull request
  2. Tried to build the project and it failed (using VSCode)
    Android is resolved, but for iOS its still and issue for you.

@SagarPanwala please correct me from what I have summarized here.

@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 11, 2019 via email

@pravindodia
Copy link

pravindodia commented Jul 11, 2019

@SagarPanwala which version of flutter are you using, the latest is flutter 1.7

@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 13, 2019 via email

@SagarPanwala
Copy link
Author

Why this issue is closed ?
Can we guys setup a call to resolve this issue?
I believe this will be minor fix for you.
Please try to help as soon as you can.

@pravindodia
Copy link

pravindodia commented Jul 17, 2019

@SagarPanwala

  1. The issue was already closed and you updated your comment on the closed issue.
  2. We do not do calls we are open community member's to help each other, and work when get time.
  3. Yes this should be minor fix, I have not got time to check taking a new pull request, but will do update you as soon as possible.
    Lastly we will try to get back to you asap.

@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 17, 2019 via email

@X-Wei
Copy link
Owner

X-Wei commented Jul 17, 2019

As @pravindodia pointed out, this is an open-source repo that we do in our spare time. And no one is obliged to resolve the raised issues in limited time.

I have closed this bug because I thought it was resolved after the migration to androidX, but seemingly it's not, so I'll re-open it. Yet still no guarantee on who will resolve this at what time.

Meanwhile, @SagarPanwala it might be useful for you to post more information:

  1. your environment setup, e.g. output from flutter doctor -v

  2. the actual commands to reproduce, e.g.:

git clone https://github.com/X-Wei/flutter_catalog.git
cd flutter_catalog && flutter run
# Or any other command you ran
  1. the exact errors that you get, for android and iOS builds.

  2. (optionally) the google/stackoverflow searchs you did, and the solutions you tried and what the errors are.

@X-Wei X-Wei reopened this Jul 17, 2019
@X-Wei X-Wei added the help wanted Extra attention is needed label Jul 17, 2019
@pravindodia
Copy link

pravindodia commented Jul 19, 2019

@SagarPanwala
Please find the steps we used to build the project

  1. Add this line in starting of podfile.
    platform :ios, '10.0'

  2. Comment clipboard_manager: '0.0.4' from pubspec.yaml
    and also comment below line from my_cart_view.dart:
    -import 'package:clipboard_manager/clipboard_manager.dart';
    Replace ClipboardManager.copyToClipBoard(this.widget.githubPath); with this
    Clipboard.setData(new ClipboardData(text: this.widget.githubPath));

  3. Open project in xcode and add GoogleServicesInfo.plist in Runner

Please let us know if you still have the issues building the project.
Once you confirm we can close the issue.

@SagarPanwala
Copy link
Author

Thanks, but above doesn't help at all.
Below are the errors I'm getting.

The method 'signInWithGoogle' isn't defined for the class 'FirebaseAuth'.
Try correcting the name to the name of an existing method, or defining a method named 'signInWithGoogle'.

Undefined class 'LabelDetector'.
Try changing the name to the name of an existing class, or creating a class with the name 'LabelDetector'.

The name 'Label' isn't a type so it can't be used as a type argument.
Try correcting the name to an existing type, or defining a type named 'Label'.

A value of type 'Rect' can't be assigned to a variable of type 'Rectangle'.
Try changing the type of the variable, or casting the right-hand type to 'Rectangle'.

A value of type 'List' can't be assigned to a variable of type 'List<Point>'.
Try changing the type of the variable, or casting the right-hand type to 'List<Point>'.

A value of type 'Offset' can't be assigned to a variable of type 'Point'.
Try changing the type of the variable, or casting the right-hand type to 'Point'.

The built-in identifier 'show' can't be used as a type.
Try correcting the name to match an existing type.

MyRouteGroup isn't a type.
Try correcting the name to match an existing type.

'MyBloc.mapEventToState' ('Stream<_MyState> Function(_MyState, _MyEvent)') isn't a valid override of 'Bloc.mapEventToState' ('Stream<_MyState> Function(_MyEvent)').

The named parameter 'bloc' isn't defined.
Try correcting the name to an existing named parameter, or defining a new parameter with this name.

@pravindodia
Copy link

@SagarPanwala
As asked before by @X-Wei , we will need the steps to reproduce, as we are not able to reproduce the same issues that you are facing.

Please refer @X-Wei's message above to send us the information.

Please send as much as information as you can, including the steps to generate the issue.

Once we get that, we will try to reproduce it and help you.

X-Wei added a commit that referenced this issue Jul 21, 2019
@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 21, 2019 via email

@X-Wei
Copy link
Owner

X-Wei commented Jul 21, 2019

Hey @SagarPanwala ,

And I by "steps to reproduce" I mean some useful, detailed information. E.g. instead of saying "in VS code, I open project", better write:

"I downloaded the the repo sync at commit [foo-commit-id], then I ran flutter clean && flutter run, and here's what I get: [the errors you get].
And my flutter version is: [the command line output of flutter doctor -v]"

From the errors you posted in #21 (comment), I guess you are still using an old version of the code -- because List<Point> was only used in the MLKit demo, but I already migrated the code to the latest MLKit API in this commit.

Have you tried cloning the latest version of the repo ? Currently it's v2.1.0, submitted 7 days ago.

So maybe try to download the latest code version again, apply the changes @pravindodia suggested in this reply, and see if you can get the iOS version to build. If not, post more detailed information/steps that people can reproduce on their own computer, and we'll try to help with it. Thx

@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 23, 2019 via email

@SagarPanwala
Copy link
Author

I'm on latest commit in master branch and my_app_meta.dart shows const APP_VERSION = 'v2.2.0';

@X-Wei
Copy link
Owner

X-Wei commented Jul 27, 2019

  1. What's your flutter version (post the command line output of flutter doctor -v in the reply)
  2. Does building for android now work ?
  3. Does building for iOS now work ?
  4. What's the actual error message (post the command line output of flutter clean && flutter run in the reply)

@SagarPanwala
Copy link
Author

  1. output of flutter doctor -v

Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132, locale en-GB)
• Flutter version 1.7.8+hotfix.3 at /Users/sagarpanwala/Library/Developer/flutter
• Framework revision b712a172f9 (3 weeks ago), 2019-07-09 13:14:38 -0700
• Engine revision 54ad777fd2
• Dart version 2.4.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/sagarpanwala/Library/Developer/Xamarin/android-sdk-macosx
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• ANDROID_HOME = /Users/sagarpanwala/Library/Developer/Xamarin/android-sdk-macosx/
• ANDROID_SDK_ROOT = /Users/sagarpanwala/Library/Developer/Xamarin/android-sdk-macosx/
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• CocoaPods version 1.7.2

[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.2.0

[!] Connected device
! No devices available

2 building for android - YES
3 building for iOS - No
4 flutter clean
[Flutter_Catalog] flutter clean
Deleting 'build/'.
Deleting '/Users/sagarpanwala/Projects/Flutter_Catalog/.dart_tool/'.
exit code 0

flutter run
Sagars-MacBook-Pro:Flutter_Catalog sagarpanwala$ flutter run
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install... 1.4s
CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A package_info
  - Flutter
  - cloud_firestore
  - firebase_analytics
  - firebase_auth
  - firebase_core
  - firebase_database
  - firebase_ml_vision
  - firebase_storage
  - flutter_webview_plugin
  - fluttertoast
  - google_sign_in
  - image_picker
  - local_auth
  - path_provider
  - shared_preferences
  - url_launcher

Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
-> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `firebase_database` from `.symlinks/plugins/firebase_database/ios`
-> Fetching podspec for `firebase_ml_vision` from `.symlinks/plugins/firebase_ml_vision/ios`
-> Fetching podspec for `firebase_storage` from `.symlinks/plugins/firebase_storage/ios`
-> Fetching podspec for `flutter_webview_plugin` from `.symlinks/plugins/flutter_webview_plugin/ios`
-> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios`
-> Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `local_auth` from `.symlinks/plugins/local_auth/ios`
-> Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`

Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
  In snapshot (Podfile.lock):
    Firebase/Firestore (= 5.11.0)

  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
      Firebase/Firestore (~> 6.0)

It seems like you've changed the constraints of dependency `Firebase/Firestore` inside your development pod
`cloud_firestore`.
You should run `pod update Firebase/Firestore` to apply changes you've made.

/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/resolver.rb:88:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer/analyzer.rb:939:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer/analyzer.rb:937:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:398:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:221:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:220:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/command/install.rb:51:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

Error output from CocoaPods:

[!] `<PBXGroup UUID=`97C146E51CF9000F007C117D`>` attempted to initialize an object with an unknown UUID.
`CF3B75C9A7D2FA2A4C99F110` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being
discarded.

Error running pod install
Error launching application on iPhone Xʀ.

@X-Wei
Copy link
Owner

X-Wei commented Jul 28, 2019

For iOS unfortunately I can't help much since I don't have the dev environment. But by googling the error message:

cloud_firestore (from .symlinks/plugins/cloud_firestore/ios) was resolved to 0.0.1, which depends on Firebase/Firestore (~> 6.0)

I found this: flutter/flutter#32389, not sure it helps.

@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 28, 2019 via email

@X-Wei
Copy link
Owner

X-Wei commented Jul 28, 2019

For my development I don't feel the android emulator is laggy, I think it also depends on the machine. If it's too laggy you can plug in a real android device instead of using the emulator.

@SagarPanwala
Copy link
Author

SagarPanwala commented Jul 28, 2019 via email

@X-Wei
Copy link
Owner

X-Wei commented Jul 28, 2019

flutter run --release will compile the app in release mode and lead to better performance (the apks released on play store are also in release mode). But then maybe the error messages are less debuggable.

@hezll
Copy link

hezll commented Oct 26, 2019

  1. output of flutter doctor -v

Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F132, locale en-GB)
• Flutter version 1.7.8+hotfix.3 at /Users/sagarpanwala/Library/Developer/flutter
• Framework revision b712a172f9 (3 weeks ago), 2019-07-09 13:14:38 -0700
• Engine revision 54ad777fd2
• Dart version 2.4.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
• Android SDK at /Users/sagarpanwala/Library/Developer/Xamarin/android-sdk-macosx
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.1
• ANDROID_HOME = /Users/sagarpanwala/Library/Developer/Xamarin/android-sdk-macosx/
• ANDROID_SDK_ROOT = /Users/sagarpanwala/Library/Developer/Xamarin/android-sdk-macosx/
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• CocoaPods version 1.7.2

[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.2.0

[!] Connected device
! No devices available

2 building for android - YES
3 building for iOS - No
4 flutter clean
[Flutter_Catalog] flutter clean
Deleting 'build/'.
Deleting '/Users/sagarpanwala/Projects/Flutter_Catalog/.dart_tool/'.
exit code 0

flutter run
Sagars-MacBook-Pro:Flutter_Catalog sagarpanwala$ flutter run
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running pod install... 1.4s
CocoaPods' output:

Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Finding Podfile changes
  A package_info
  - Flutter
  - cloud_firestore
  - firebase_analytics
  - firebase_auth
  - firebase_core
  - firebase_database
  - firebase_ml_vision
  - firebase_storage
  - flutter_webview_plugin
  - fluttertoast
  - google_sign_in
  - image_picker
  - local_auth
  - path_provider
  - shared_preferences
  - url_launcher

Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
-> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `firebase_database` from `.symlinks/plugins/firebase_database/ios`
-> Fetching podspec for `firebase_ml_vision` from `.symlinks/plugins/firebase_ml_vision/ios`
-> Fetching podspec for `firebase_storage` from `.symlinks/plugins/firebase_storage/ios`
-> Fetching podspec for `flutter_webview_plugin` from `.symlinks/plugins/flutter_webview_plugin/ios`
-> Fetching podspec for `fluttertoast` from `.symlinks/plugins/fluttertoast/ios`
-> Fetching podspec for `google_sign_in` from `.symlinks/plugins/google_sign_in/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `local_auth` from `.symlinks/plugins/local_auth/ios`
-> Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`

Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Firebase/Firestore":
  In snapshot (Podfile.lock):
    Firebase/Firestore (= 5.11.0)

  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
      Firebase/Firestore (~> 6.0)

It seems like you've changed the constraints of dependency `Firebase/Firestore` inside your development pod
`cloud_firestore`.
You should run `pod update Firebase/Firestore` to apply changes you've made.

/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/resolver.rb:88:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer/analyzer.rb:939:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer/analyzer.rb:937:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:398:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:221:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:220:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/command/install.rb:51:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.2/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

Error output from CocoaPods:

[!] `<PBXGroup UUID=`97C146E51CF9000F007C117D`>` attempted to initialize an object with an unknown UUID.
`CF3B75C9A7D2FA2A4C99F110` for attribute: `children`. This can be the result of a merge and  the unknown UUID is being
discarded.

Error running pod install
Error launching application on iPhone Xʀ.

Same as mine.

[!] <PBXGroup UUID=97C146E51CF9000F007C117D> attempted to initialize an object with an unknown UUID. CF3B75C9A7D2FA2A4C99F110 for attribute: children. This can be the result of a merge
and the unknown UUID is being discarded.

[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.

Just try flutter run on mac os. Is there any one can hellp?

@hezll
Copy link

hezll commented Oct 28, 2019

I just try to start delete all those dependency and router to find out why. Now it looks like all those issues comming from firebase. Because it works fine for me, if I delete the firebase.
@X-Wei Is there any special configure file required for those firebase package? If add all those packages as dependency, the pod install error will display.

image

Actually, it is very clear in the error msg:
the default Firebase app has not yet been configured. Add [FIRApp configure]; (FirebaseApp.configure() in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
5.11.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.

@KanybekMomukeyev
Copy link

Commented this part

  # cloud_firestore: 0.13.6
  # firebase_analytics: 5.0.14
  # firebase_auth: 0.16.1
  # firebase_core: 0.4.5
  # firebase_database: 3.1.6
  # firebase_ml_vision: 0.9.4
  # firebase_storage: 3.1.6
  # google_sign_in: 4.5.1

change to

hive_flutter: ^0.3.0+2
  hive: ^1.4.1+1
  path: ^1.7.0

add this

dependency_overrides:
  dartx: ^0.3.0
  characters: ^0.5.0
  path: ^1.6.4

@KanybekMomukeyev
Copy link

This is full .yml file:

name: flutter_catalog
description: An app showcasing Flutter components, with side-by-side source code view.

# *Note*: when version change, remember to also update constants.dart.
version: 2.5.4+56

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  animated_floatactionbuttons: 0.1.0
  animations: 1.1.0
  async: ^2.4.0
  backdrop: 0.3.2
  cached_network_image: 2.2.0+1
  charts_flutter: 0.9.0
  # cloud_firestore: 0.13.6
  english_words: 3.1.5
  extended_image: 0.9.0
  # firebase_analytics: 5.0.14
  # firebase_auth: 0.16.1
  # firebase_core: 0.4.5
  # firebase_database: 3.1.6
  # firebase_ml_vision: 0.9.4
  # firebase_storage: 3.1.6
  flutter_bloc: 4.0.0
  flutter_gallery_assets: 0.1.9+2
  flutter_markdown: 0.4.1
  flutter_webview_plugin: 0.3.11
  fluttertoast: 4.0.1
  # google_sign_in: 4.5.1
  hive_flutter: ^0.3.0+2
  hive: ^1.4.1+1
  path: ^1.7.0
  http: 0.12.1
  image_picker: 0.6.7
  local_auth: 0.6.2+3
  lottie: ^0.3.3
  package_info: 0.4.0+18
  path_provider: 1.6.9
  provider: 4.1.2
  scoped_model: 1.0.1
  sembast: 2.4.4+1
  shared_preferences: 0.5.7+3
  sqflite: 1.3.0+2
  substring_highlight: 0.1.2
  transparent_image: 1.0.0
  url_launcher: 5.4.10
  video_player: 0.10.11+1
  widget_with_codeview: 1.0.3

dev_dependencies:
  flutter_test:
    sdk: flutter
  hive_generator: 0.7.0+2
  build_runner: 1.10.0

dependency_overrides:
  dartx: ^0.3.0
  characters: ^0.5.0
  path: ^1.6.4

# The following section is specific to Flutter.
flutter:
  uses-material-design: true
  # Note: when new assets are added, have to run `flutter clean` to see 
  # changes take effect.
  assets:
    # *Tip*: keep the slash at the end of folder path adds all files to 
    # assets. Note: this doesn't work with subfolders. 
    # c.f. https://github.com/flutter/flutter/issues/4890#issuecomment-407327749
    - lib/routes/
    - res/images/
    - res/lottie/
    - packages/flutter_gallery_assets/animated_images/animated_flutter_stickers.webp
  
  fonts:
    - family: monospace
      fonts:
        - asset: res/DroidSansMono.ttf

@X-Wei X-Wei closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants