繁体   English   中英

使用cocoapods构建TestFlightSDK

[英]building TestFlightSDK with cocoapods

我试图通过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旧库无法编译 - 所以我假设它与此有关。

这有什么工作吗?

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

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

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

libTestFlight.a可以在[$SRCROOT]/Pods/TestFlightsSDK

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM