ios - "linker command failed with exit code 1" when i add new TwitterKit by pods? -


yesterday after update pods, have 74 errors.

undefined symbols architecture arm64:   "_objc_class_$_twtrdateutil", referenced from:       objc-class-ref in twitterkit(twtrtweetview.o)       objc-class-ref in twitterkit(twtrdateformatter.o)   "_objc_class_$_twtrscribeservice", referenced from:       objc-class-ref in twitterkit(twitter.o)   "_objc_class_$_twtrguestsessionmanager", referenced from:       objc-class-ref in twitterkit(twitter.o)   "_twtrcoreversion", referenced from:       +[twitter assertvalidtwittercoreversion] in twitterkit(twitter.o)   "_twtrusersessionverifierintervaldaily", referenced from:       -[twitter kitdidfinishstarting] in twitterkit(twitter.o)   "_twtrnetworkinguseragentheaderkey", referenced from:       -[twitter startwithconsumerkey:consumersecret:] in twitterkit(twitter.o)   "_twtrauthappoauthdeniedkey", referenced from:       -[twtrwebauthenticationprovider requestaccesstokenwithauthresponse:completion:] in twitterkit(twtrwebauthenticationprovider.o) 

linker command failed exit code 1.

my new pods:

pod 'fabric' pod 'twitterkit' pod 'crashlytics' 

before:

pod 'fabric/core', '~> 1.2.3' pod 'fabric/crashlytics', '~> 1.2.3' pod 'fabric/twitter', '~> 1.2.3' 

this answers don't me: add twitter library, add libstdc++

also try add twitter.framework, social.framework, accounts.framework.

i use 2 big libs linker flags -objc

i went through today. had install pod twittercore. add following line podfile , run pod install again:

pod 'twittercore' 

if doesn't work try going build settings , search in search bar "other linker flags". once finds double click in area right lists actual flags.

remove flags using - icon , add following flag using + icon: $(inherited)


Comments