Undefined symbols for architecture armv7: "_OBJC_CLASS_$_Flurry"
Asked Answered
T

4

16

I am trying to integrate Flurry analytics 4.1.0 into my iPhone application, but I am receiving the following error when trying to build the project:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_Flurry", referenced from:
      objc-class-ref in AppDelegate.o

I have followed the Flurry steps and googled the issue but everyone with a similar issue had simply forgotten to link SystemConfiguration.framework.

Below are some screenshots of my project setup.

project files libraries project build settings

Trevelyan answered 2/1, 2013 at 14:51 Comment(2)
Might be some change recently, I don't need to do anything after adding pod 'FlurrySDK', '5.0' in my Podfile.Rat
And if libflurry doenst appear in the list you can browse to the file and add it via that way (worked for me)Westering
S
37

It seems that the library libFlurry.a isn't properly added to your project. It should appear in the second screenshot.

Click on the + icon at the bottom of the Link Binary with Libraries view (second screenshot) and select the libFlurry.a file. Then build again.

Swann answered 2/1, 2013 at 15:0 Comment(2)
Note that if you are using CocoaPods you still need to manually add the lib.Schrader
For CocoaPods, you need to manually add the lib every time you update Pods.Dogleg
P
18

Actually, you also need add the following frameworks:

CFNetwork.framework
Security.framework
SystemConfiguration.framework
Perlie answered 18/8, 2013 at 14:25 Comment(1)
Thank you so much, I didn't see this anywhere in Flurry's docs.Ceratodus
N
0

I don't know why but my libFlurry.a file is located IN the pod folder named as "libFlurry_6.7.0.a". I am not sure whether I am being stupid here, but just in case someone like me don't know where to look for it...

After adding it, it works.

Neelyneeoma answered 13/9, 2015 at 7:50 Comment(0)
A
0

I'm using flurry via pods:

pod 'Flurry-iOS-SDK/FlurrySDK'
pod 'Flurry-iOS-SDK/FlurryAds'
pod 'Flurry-iOS-SDK/TumblrAPI'

I had to link the libFlurryAds.a from the pods folder.

enter image description here

Astrid answered 26/2, 2016 at 9:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.