我们有一个直接引用 AWS 移动框架的 iOS 应用程序和使用 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_64clang: error: linker command failed with exit code 1 (use -v to see invocation)
如果我们从其他链接器标志build设置中删除 $(inherited) 标志,则会出现以下错误:-

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

任何帮助将不胜感激..

谢谢,

最佳答案

在您的 Pods-{PROJECT_NAME}.debug.xcconfigPods-{PROJECT_NAME}.release.xcconfig 文件中,找到这一行

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

并删除 -ObjC

或者,您也可以通过转至 Build Settings -> Other Linker Flags 从 XCode 修复此问题,并从那里删除 -ObjC
在 AWS 移动开发工具包中使用 Quickblox Pod 文件的 iOS 构建错误-LMLPHP

关于在 AWS 移动开发工具包中使用 Quickblox Pod 文件的 iOS 构建错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38745806/

10-13 03:01