Maliffic / firebase_ui

MIT License
45 stars 48 forks source link

Cannot build due to Twitter issues #17

Open gurmukhp opened 5 years ago

gurmukhp commented 5 years ago

Podfile has ios 10.1.

Adding firebase_ui to podspec, and running on an emulator, I get the following error:

Launching lib/main.dart on iPhone Xʀ in debug mode...
Xcode build done.                                           11.7s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    warning: Capabilities for Runner may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'Runner')
    /Users/g/Sites/flutter/uym/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: warning: private submodule 'TwitterCore.Private' in private module map, expected top-level module [-Wprivate-module]
    explicit module TwitterCore.Private {
                                ^
    /Users/g/Sites/flutter/uym/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: note: rename 'TwitterCore.Private' to ensure it can be found by name
    explicit module TwitterCore.Private {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
    framework module TwitterCore_Private
    /Users/g/Sites/flutter/uym/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: warning: private submodule 'TwitterCore.Private' in private module map, expected top-level module [-Wprivate-module]
    explicit module TwitterCore.Private {
                                ^
    /Users/g/Sites/flutter/uym/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: note: rename 'TwitterCore.Private' to ensure it can be found by name
    explicit module TwitterCore.Private {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
    framework module TwitterCore_Private
    /Users/g/Sites/flutter/uym/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: warning: private submodule 'TwitterCore.Private' in private module map, expected top-level module [-Wprivate-module]
    explicit module TwitterCore.Private {
                                ^
    /Users/g/Sites/flutter/uym/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: note: rename 'TwitterCore.Private' to ensure it can be found by name
    explicit module TwitterCore.Private {
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
    framework module TwitterCore_Private
    <module-includes>:1:1: warning: umbrella header for module 'TwitterCore' does not include header 'TWTRColorUtil.h' [-Wincomplete-umbrella]
    #import "Headers/TwitterCore.h"
    ^
    2 warnings generated.
    3 warnings generated.
    4 warnings generated.
    Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_TWTRAPIClient", referenced from:
          objc-class-ref in TwitterLoginPlugin.o
      "_OBJC_CLASS_$_TWTRTwitter", referenced from:
          objc-class-ref in TwitterLoginPlugin.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
Exited (sigterm)

I can reproduce this reliably with the latest Flutter and a clean project.

kitet commented 4 years ago

update your Podfile to ios 11.0. Somehow that worked for me.

emmett-deen commented 4 years ago

update your Podfile to ios 11.0. Somehow that worked for me.

This worked for me however 11.0 seems to be an extremely high minimum. Wish there was a way we could choose to use this UI but without twitter so we could get a lower minimum required version

mvitolo commented 4 years ago

it needs 10.1

SoftWyer commented 4 years ago

Is 10.1 the iOS Deployment Target value in the Podfile or something else? Mine's set to 12 and I still get this error.

mvitolo commented 4 years ago

open xcode open your Runner.xcworkspace

into Info -> iOS Deployment Target