xcode 添加testflight sdk后无法构建项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9215317/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:16:32  来源:igfitidea点击:

Can't build project after adding testflight sdk

iphoneobjective-ciosxcodetestflight

提问by user801255

Can't build project after adding testflight sdk

添加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.

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

采纳答案by user801255

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

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

回答by Gerard

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.

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

回答by warrenm

Carefully go back through Step 2 of the Integration procedurein the SDK documentation. The ldin 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.

仔细返回SDK 文档中集成过程的第 2 步。该ld错误消息表示这是一个链接时未能找到引用类。这几乎总是因为在“Link Binary With Libraries”构建阶段没有包含必要的库。

回答by NeverBe

i removed TFLOG declarations from project . all works

我从项目中删除了 TFLOG 声明。所有作品