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

joe
  • 16,988
  • 36
  • 94
  • 131
  • Might be some change recently, I don't need to do anything after adding `pod 'FlurrySDK', '5.0'` in my Podfile. – db42 Oct 17 '14 at 03:47
  • And if libflurry doenst appear in the list you can browse to the file and add it via that way (worked for me) – Charlie S Sep 24 '16 at 17:27

4 Answers4

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.

Codo
  • 75,595
  • 17
  • 168
  • 206
18

Actually, you also need add the following frameworks:

CFNetwork.framework
Security.framework
SystemConfiguration.framework
adotidea
  • 199
  • 1
  • 5
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.

Michael Shang
  • 686
  • 8
  • 9
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

Naloiko Eugene
  • 2,453
  • 1
  • 28
  • 18