0

我是 Sinch 服务的新手,目前我正在尝试通过 Cocoapods 使用“SinchService”和“SinchRTC”,但 Xcode 给了我这个错误:

架构 x86_64 的未定义符号:
“_OBJC_CLASS_$_Sinch”,引用自:SINService.o 中的 objc-class-ref(也许您的意思是:_OBJC_CLASS_$_SinchService)
“_SINApplicationDidReceiveRemoteNotification”,引用自:SINService.o 中的 -[SINService initWithConfig:] -[SINService dealloc] in SINService.o
"_SINClientDidFailNotification",引用自:-[SINSClientsObserver init] in SINSClientsObserver.o -[SINSClientsObserver dealloc] in SINSClientsObserver.o
"_SINClientDidStartNotification",引用自:-[SINSClientsObserver init] in SINSClientsObserver.o -SINSClientsObserver.o 中的[SINSClientsObserver dealloc]
“_SINClientWillTerminateNotification”,引用自:SINSClientsObserver.o 中的-[SINSClientsObserver init] -SINSClientsObserver.o 中的[SINSClientsObserver dealloc]
“_SINRemoteNotificationKey”,引用自:SINService.o
ld 中的-[SINService onDidReceiveRemoteNotification:]:符号未找到对于架构 x86_64
clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

当我从 Podfile 中删除“SinchService”时,Xcode 不会抛出任何错误。对此问题的帮助将不胜感激。

我的 podfile:
平台:ios,'8.4'
源' https://github.com/CocoaPods/Specs.git '
use_frameworks!
target 'Conversa' do
pod 'ParseUI'
pod 'Parse'
pod 'SinchService'
pod 'SinchRTC'
pod 'YapDatabase/SQLCipher'
pod 'GoogleMaps'
pod 'JSQMessagesViewController'
pod 'Whisper'
pod 'OHQBImagePicker'
pod 'Buglife'
pod 'Branch '
吊舱'TTTAttributedLabel'
吊舱'JVFloatLabeledTextField'
吊舱'MBProgressHUD','〜> 0.9.1'
吊舱'Appirater'
吊舱'



吊舱“SSKeychain”
吊舱“地幔”,“〜> 2.0”
吊舱“DGActivityIndi​​catorView”
结束

4

1 回答 1

1

它需要在链接库中添加以下框架。在此处输入图像描述

于 2016-08-03T07:16:18.817 回答