添加testflight sdk后无法构建项目

use*_*255 10 iphone xcode objective-c ios testflight

添加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)
Run Code Online (Sandbox Code Playgroud)

我正在使用Xcode 4.2.相同的项目通常使用Xcode 4.3在另一台计算机上构建.SDK被添加到所有需要的目标,也尝试了所有解决方案,与此主题相关.

Ger*_*ard 38

我有一个类似的问题从TestFlight 0.8.1更新到0.8.3.我重读了README.txt文件中的说明.我相信你现在必须添加libz.dylib("如何将SDK集成到我的项目中"中的步骤3).之后,我能够在模拟器和开发iPad上运行我的应用程序.

  • 添加libz.dylib解决了这个问题.保护你. (3认同)

use*_*255 -4

可能我在项目设置中遇到了一些问题,检查项目解决了问题

  • 虽然这可能已经“解决”了您的问题,但您提出的问题更正确地由上面的 Gerard 或 warrenm 解决。 (2认同)