user801255
user801255

Reputation: 607

Can't build project after adding testflight sdk

Can't build project after adding testflight sdk

 Undefined symbols for architecture i386:
  "_TFLog", referenced from:
      -[IBIZAAppDelegate application:didFinishLaunchingWithOptions:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate application:didReceiveRemoteNotification:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate registerSuccess:] in IBIZAAppDelegate.o
      -[IBIZAAppDelegate registerFail:] in IBIZAAppDelegate.o
      -[MainViewController viewDidLoad] in MainViewController.o
      ...
  "_OBJC_CLASS_$_TestFlight", referenced from:
      objc-class-ref in IBIZAAppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm working with Xcode 4.2. Same project is normally building on the other computer with Xcode 4.3. SDK is added to all needed targets, also tried all solution, related to this subject.

Upvotes: 10

Views: 6154

Answers (4)

Gerard
Gerard

Reputation: 699

I had a similar problem updating from TestFlight 0.8.1 to 0.8.3. I reread the instructions in the README.txt file. I believe you now have to add libz.dylib (Step 3 in "How do I integrate the SDK into my project"). After that I was able to run my app on the simulator and on my development iPad.

Upvotes: 38

user801255
user801255

Reputation: 607

Probably I had some issues in project settings, checkouting the project solved the problem

Upvotes: -4

warrenm
warrenm

Reputation: 31782

Carefully go back through Step 2 of the Integration procedure in the SDK documentation. The ld in the error message indicates that this is a link-time failure to find a referenced class. This is almost always the result of not including a necessary library in the "Link Binary With Libraries" build phase.

Upvotes: 3

NeverBe
NeverBe

Reputation: 5038

i removed TFLOG declarations from project . all works

Upvotes: -1

Related Questions