在AWS Mobile SDK中使用Quickblox Pod文件的iOS构建错误

时间:2016-08-03 14:00:33

标签: ios swift cocoapods quickblox aws-sdk

我们有一个iOS应用程序直接引用AWS Mobile框架,还有几个其他库使用CocoaPods。该项目建立良好

但是,当我们将“Quickblox-SDK”添加为在PodFile中引用的附加库并运行pod install时,我会收到几个构建/链接器错误:

Undefined symbols for architecture x86_64: "_AWSSNSErrorDomain", referenced from: ___88-[AWSPushManager interceptApplication:didRegisterForRemoteNotificationsWithDeviceToken:]_block_invoke.239 in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_AWSSNS", referenced from: objc-class-ref in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_AWSSNSCreatePlatformEndpointInput", referenced from: objc-class-ref in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_AWSSNSGetEndpointAttributesInput", referenced from: objc-class-ref in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_AWSSNSSetEndpointAttributesInput", referenced from: objc-class-ref in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_AWSSNSSubscribeInput", referenced from: objc-class-ref in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_AWSSNSUnsubscribeInput", referenced from: objc-class-ref in AWSMobileHubHelper(AWSPushManager.o) "_OBJC_CLASS_$_FBSDKAccessToken", referenced from: objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o) "_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from: objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o) "_OBJC_CLASS_$_FBSDKGraphRequest", referenced from: objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o) "_OBJC_CLASS_$_FBSDKLoginManager", referenced from: objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o) "_OBJC_CLASS_$_GIDSignIn", referenced from: objc-class-ref in AWSMobileHubHelper(AWSGoogleSignInProvider.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果我们从Other Linker Flags构建设置中删除$(inherited)标志,则会出现以下错误: -

bash:/User/..../AWSCore.framework/strip-frameworks.sh:没有这样的文件或目录 uploadDSYM [13005:219405] Fabric.framework / run 1.4.1(160) uploadDSYM [13005:219405]在验证模式下启动上传器 bash:/Users/..../Frameworks/Quickblox.framework/strip-framework.sh:没有这样的文件或目录

任何帮助将不胜感激..

谢谢,

1 个答案:

答案 0 :(得分:2)

Pods-{PROJECT_NAME}.debug.xcconfigPods-{PROJECT_NAME}.release.xcconfig文件中,找到此行

OTHER_LDFLAGS = $(inherited) -ObjC -l"z" ....

并删除 -ObjC

或者,您也可以通过转到Build Settings - >从XCode修复此问题。其他链接器标志,并从那里删除 -ObjC enter image description here