Marty
Marty

Reputation: 2963

building TestFlightSDK with cocoapods

I seem to be getting the error message while trying to compile TestFlightSDK in my app via cocoapods

Im my Podfile i have the line:

pod 'TestFlightSDK'

And the pod update works fine.

When i try and compile the app i get the message:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_TestFlight", referenced from:
      objc-class-ref in OurDealAppDelegate_iPhone.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

my app is only supporting Architecture armv7 (because if i add armv7s or arm64 older libraries fail to compile - so i assume its something to do with this.

Is there any work around for this?

Upvotes: 0

Views: 154

Answers (1)

Aniruddh
Aniruddh

Reputation: 7668

Okay, you need to confirm whether Cocoapods has included libTestFlight.a library in your project. Cocoapods has never added the library for me.

So, please follow the steps below:

  • Open the Pods-TestFlightSDK target in the Pods.xcodeproj project
  • Open Build Phases tab and add libTestFlight.a

libTestFlight.a can be found at [$SRCROOT]/Pods/TestFlightsSDK

Upvotes: 2

Related Questions