flurry / flurry-ios-sdk

Flurry iOS SDK CocoaPods
Apache License 2.0
154 stars 62 forks source link

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FlurryTumblr" #7

Closed bnroths closed 8 years ago

bnroths commented 9 years ago

Trying to get FlurryTumblr working and my app won't compile.

This is the error I'm getting

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FlurryTumblr", referenced from:
      type metadata accessor for ObjectiveC.FlurryTumblr in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any ideas on how to fix? Not finding any solutions or anything in the documentation.

hetul commented 9 years ago

The FlurryTumblr files currently live in the Flurry Ads SDK. You'll have to include both FlurryTumblrAPI and FlurryAds.

The cocoapods spec here doesn't currently list this dependency, so we'll have to update that, but for now, you can manually include the FlurryAds subspec.

bnroths commented 9 years ago

hmm, still not working for me. Can you outline in readme how exactly to use the tumblr api

my podfile is

platform :ios, '8.4'

use_frameworks!

pod 'MMDrawerController'
pod 'Mixpanel'
pod 'Alamofire'
pod 'FLAnimatedImage'
pod 'SwiftyJSON'
pod 'AFBlurSegue'
pod 'Flurry-iOS-SDK/TumblrAPI'
pod 'Flurry-iOS-SDK/FlurrySDK'
pod 'Flurry-iOS-SDK/FlurryAds'

when I do

Tumblr.setConsumerKey("XXX", consumerSecret: "XXX")

I get "Use of unresolved identifier 'Tumblr'"

hetul commented 9 years ago

Documentation is here: https://developer.yahoo.com/flurry/docs/tumblrsharing/iOS/

See the examples at the bottom.

The object you want to call is FlurryTumblr, not Tumblr. You should be seeing the declarations within FlurryTumblr.h

bnroths commented 9 years ago

hmm, still getting the same error

was googling and tried some of the solutions on this page http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64

but couldn't figure it out, grrrr...

rollinsio commented 8 years ago

@b-nroths my apologies for a lack of response. I hope your issue is resolved, but if it is not, the best way to get a quick resolution on issues such as this is to reach out via our support arm, which can be found at support@flurry.com.