我是iOS开发的新手,所以如果这是一个微不足道的问题,请原谅我。
我正在开发一个使用Google框架的iPhone应用程序,更具体地说,
#import <GoogleOpenSource/GoogleOpenSource.h>
#import <GooglePlus/GooglePlus.h>
我按照以下网址中的说明操作:https://developers.google.com/+/mobile/ios/getting-started。第6步指定将标记-ObjC
添加到其他链接标记。如果我按照此页面上的所有说明以及位于此处的下一页https://developers.google.com/+/mobile/ios/sign-in,我可以成功从Google获取AUTH令牌以及Google+帐户中的正确电子邮件地址。
完成此操作后,我已将AWS框架添加到我的项目中,更具体地说,
#import <AWSRuntime/AWSRuntime.h>
#import <AWSRuntime/AmazonCredentials.h>
#import <AWSDynamoDB/AWSDynamoDB.h>
#import <AWSDynamoDB/DynamoDBGetItemRequest.h>
但是在编译时,我得到以下编译时错误:
Undefined symbols for architecture x86_64:
"_NSStoreTypeKey", referenced from:
-[AWSPersistenceDynamoDBIncrementalStore loadMetadata:] in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_NSStoreUUIDKey", referenced from:
-[AWSPersistenceDynamoDBIncrementalStore loadMetadata:] in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_CLASS_$_NSAttributeDescription", referenced from:
objc-class-ref in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_CLASS_$_NSIncrementalStore", referenced from:
_OBJC_CLASS_$_AWSPersistenceDynamoDBIncrementalStore in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_CLASS_$_NSIncrementalStoreNode", referenced from:
objc-class-ref in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_CLASS_$_NSManagedObject", referenced from:
objc-class-ref in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_CLASS_$_NSRelationshipDescription", referenced from:
objc-class-ref in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
"_OBJC_METACLASS_$_NSIncrementalStore", referenced from:
_OBJC_METACLASS_$_AWSPersistenceDynamoDBIncrementalStore in AWSPersistence(AWSPersistenceDynamoDBIncrementalStore.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
现在,如果我从其他链接标记中删除-ObjC
标记,所有内容都会编译,则AWS框架可以正常工作,但点击它时,Google+按钮不执行任何操作。
我觉得我错过了一些简单的东西,比如可能只是在Google框架上使用-ObjC标志,但我找不到任何相关内容。
任何帮助将不胜感激!