flutter_twitter_login icon indicating copy to clipboard operation
flutter_twitter_login copied to clipboard

Cannot build it

Open rdev-software opened this issue 5 years ago • 4 comments

Cannot build with following output:

Xcode's output:
↳
    === BUILD TARGET flutter_twitter_login OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:133:17: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    _view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0);
                    ^
                    self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:133:67: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    _view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0);
                                                                      ^
                                                                      self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:148:18: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    [_view sizeToFit];
                     ^
                     self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:189:13: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            if (_navigationController) {
                ^
                self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:190:40: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                [self updateNavigationBarY:_view.statusBarHeight];
                                           ^
                                           self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:193:24: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            CGRect frame = _view.frame;
                           ^
                           self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:195:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
            _view.frame = frame;
            ^
            self->
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:203:17: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    _view.closed = YES;
                    ^
                    self->
    8 warnings generated.
    /Users/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/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/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/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/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/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/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/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/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/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/tr/Documents/Projects/RDev/Art-Is-Heart/ArtIsHeart-Flutter/App/art_is_heart/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)

Is there any plan to move this plugin from deprecated TwitterKit to for example https://github.com/mattdonnelly/Swifter

rdev-software avatar Jul 18 '19 09:07 rdev-software

@rdev-software You found a way to fix this?

kaumudpa avatar Aug 01 '19 11:08 kaumudpa

No, I was expecting some reply from "owners" of this repo, as it seems really dead. I spoke to people from firebase / flutter community and they dont care about twitter either. So I guess only way is to rewrite iOS part using library I mentioned...and then use similar approach on Android if there is any other, better maintained project

rdev-software avatar Aug 01 '19 11:08 rdev-software

I know, I am looking to use Oauth with webview to get auth done, lets see how it goes!

kaumudpa avatar Aug 01 '19 11:08 kaumudpa

same as here ↳ warning: The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target. (in target 'Runner') Undefined symbols for architecture arm64: "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 arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Runner-aklbwbvsmnjstbasuacfiwugjxbc note: Using new build systemnote: Planning buildnote: Constructing build description Could not build the precompiled application for the device.

Error launching application on apple’s iPhone. Exited (sigterm)

ahmedsalamay avatar Sep 23 '19 09:09 ahmedsalamay