Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Error when building for ios #3

Open
jruillier opened this issue May 13, 2019 · 8 comments
Open

Error when building for ios #3

jruillier opened this issue May 13, 2019 · 8 comments

Comments

@jruillier
Copy link

[!] The 'Pods-Runner' target has transitive dependencies that include static binaries: (/MY_PROJECT/ios/Pods/TwitterKit/iOS/TwitterKit.framework)

Any idea ?

@Maliffic
Copy link
Owner

Try adding pod 'TwitterKit' to your podfile, if that doesnt help link me your podfile so I can take a look

@jruillier
Copy link
Author

Podfile.zip

Steps to reproduce

Use the last flutter stable release :

Flutter 1.5.4-hotfix.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7a4c33425d (3 weeks ago) • 2019-04-29 11:05:24 -0700
Engine • revision 52c7a1e849
Tools • Dart 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

With Android Studio 3.4.1, create a new Flutter project with Kotlin and Swift enabled.

Add to pubspec.yaml :

  firebase_ui: ^1.0.4
  flutter_localizations:
    sdk: flutter

Download and install in Xcode project GoogleService-Info.plist.

Copy main.dart from your example.

Clean and run project in iOS simulator :

flutter clean
flutter run  -d "iPhone Xʀ"

@Maliffic
Copy link
Owner

So I followed your steps, I got passed that error you linked.

Set the platform in the top of your podfile:

platform :ios, '10.1'

Also in xcode file ->workspace settings -> build system. Set that to legacy.

cd/ ios folder and run pod install

Remember after that you will have to set firebase/twitterkit/facebook IDs and BundleURL's in info.plist.

@jruillier
Copy link
Author

Thanks :-)

I followed your steps, but I have another error :

Xcode's output:
↳
    === BUILD TARGET flutter_twitter OF PROJECT Pods WITH CONFIGURATION Debug ===
    warning: no rule to process file '/Users/jerome1/Workspace/Perso/firebaseui_test/firebaseui_test/ios/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/Basics/FBSDKCoreKit.modulemap' of type sourcecode.module-map for architecture x86_64
    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)

@curciosobrinho
Copy link

@Maliffic I managed to fix that by running:
Open terminal, go to ios folder and run "pod install" after setting the target to 10.1
If there is a problem with FBSCoreKit, run:
pod update FBSDKCoreKit

Then you can run it normally.

@duncanhunter
Copy link

duncanhunter commented Jun 7, 2019

Tried these steps in the example app with no success and get the below error.

'TwitterKit/TwitterKit.h' file not found
#import <TwitterKit/TwitterKit.h>

Tried several other threads about the topic with no success including roughike/flutter_twitter_login#12

Ready to uninstall but looking to perceiver with some new options :)

Works fine on android.

@mrroccodev
Copy link

@duncanhunter
To solve the problem as I do not use the Twitter Login I forked the project and removed the Twitter dependencies and it worked normal on my app.

@duncanhunter
Copy link

duncanhunter commented Jul 30, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants