但是当我创造
时[AWSStaticCredentialsProvider *credentialsProvider = [AWSStaticCredentialsProvider credentialsWithAccessKey..]
我收到如下错误。
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AWSServiceConfiguration", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_AWSServiceManager", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_AWSStaticCredentialsProvider", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:1)
我遇到了同样的问题,并在将一些框架和第三方转移到Pod后最终管理我的项目: AWS,Parse,Facebook,SDWebImage,MBProgressHUD,Bolts等......
还在“其他链接器标志”下的主项目设置中添加了$(继承)。一切都完成了。
My Pod文件如下所示:
#取消注释此行以定义项目的全局平台 平台:ios,'7.0' #如果您正在使用Swift,请取消注释此行 #use_frameworks!
目标'ProjectName'执行
来源'https://github.com/CocoaPods/Specs.git'
pod'AWCCore'
pod'AWSS3'
pod'Bolts'
pod'Parse'
pod'ParseFacebookUtils'
pod'ParseCrashReporting'
pod'ParseUI'
pod'FBSDKCoreKit'
pod'ParseTwitterUtils'
pod'SDWebImage'
pod'MBProgressHUD'
端