使用cocoapods构建TestFlightSDK

时间:2014-04-05 08:26:03

标签: ios cocoa cocoapods testflight

我试图通过cocoapods在我的应用程序中编译TestFlightSDK时似乎收到错误消息

我的Podfile我有这条线:

pod 'TestFlightSDK'

pod更新工作正常。

当我尝试编译应用程序时,我收到消息:

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)

我的应用程序仅支持架构armv7(因为如果我添加armv7s或arm64旧库无法编译 - 所以我假设它与此有关。

有没有解决这个问题?

1 个答案:

答案 0 :(得分:2)

好的,您需要确认Cocoapods是否在项目中包含了libTestFlight.a库。 Cocoapods从未为我添加过该库。

所以,请按照以下步骤操作:

  • 在Pods.xcodeproj项目中打开Pods-TestFlightSDK目标
  • 打开Build Phases选项卡并添加libTestFlight.a
可以在libTestFlight.a

找到

[$SRCROOT]/Pods/TestFlightsSDK