2

伙计们,我正在研究集成 google drive,我在 google sdk 示例中找到了来自 google-api-objectivec-client 的代码。

我搜索并发现,要解决这些问题,您需要添加 security.framewok 和 SystemCofiguration.framework ,我已经这样做了,但无法成功。

还发现将“框架搜索路径”更改为

 "$(SDKROOT)/Developer/Library/Frameworks"
 "$(DEVELOPER_LIBRARY_DIR)/Frameworks"

我也这样做,但不能缩短这些错误。

 "_SecItemAdd", referenced from:

-[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in   GTMOAuth2ViewControllerTouch.o

 "_SecItemCopyMatching", referenced from:

-[GTMOAuth2Keychain passwordForService:account:error:] in GTMOAuth2ViewControllerTouch.o

 "_SecItemDelete", referenced from:

 -[GTMOAuth2Keychain removePasswordForService:account:error:] in GTMOAuth2ViewControllerTouch.o

 "_kSecAttrAccessible", referenced from:

 -[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in GTMOAuth2ViewControllerTouch.o

  "_kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly", referenced from:

  +[GTMOAuth2ViewControllerTouch saveParamsToKeychainForName:accessibility:authentication:] in GTMOAuth2ViewControllerTouch.o

 "_kSecAttrAccount", referenced from:

 +[GTMOAuth2Keychain keychainQueryForService:account:] in GTMOAuth2ViewControllerTouch.o

 "_kSecAttrGeneric", referenced from:

 +[GTMOAuth2Keychain keychainQueryForService:account:] in GTMOAuth2ViewControllerTouch.o

 "_kSecAttrService", referenced from:

 +[GTMOAuth2Keychain keychainQueryForService:account:] in GTMOAuth2ViewControllerTouch.o

 "_kSecClass", referenced from:

 +[GTMOAuth2Keychain keychainQueryForService:account:] in GTMOAuth2ViewControllerTouch.o

 "_kSecClassGenericPassword", referenced from:

 +[GTMOAuth2Keychain keychainQueryForService:account:] in GTMOAuth2ViewControllerTouch.o

"_kSecMatchLimit", referenced from:

-[GTMOAuth2Keychain passwordForService:account:error:] in GTMOAuth2ViewControllerTouch.o

"_kSecMatchLimitOne", referenced from:

-[GTMOAuth2Keychain passwordForService:account:error:] in GTMOAuth2ViewControllerTouch.o

"_kSecReturnData", referenced from:

-[GTMOAuth2Keychain passwordForService:account:error:] in GTMOAuth2ViewControllerTouch.o

"_kSecValueData", referenced from:

 -[GTMOAuth2Keychain setPassword:forService:accessibility:account:error:] in  GTMOAuth2ViewControllerTouch.o

 Symbol(s) not found for architecture i386

Linker command failed with exit code 1 (use -v to see invocation)

请帮助我,谢谢

4

1 回答 1

0

我也面临谷歌 gtl 框架的这个问题。根据他们的指示,最初我设置了其他链接器标志,如下所示

将 ObjC 链接器标志添加到应用程序目标的构建设置中:

其他链接器标志:-ObjC

清除该标志后,所有警告都消失了,构建成功。

注意:我正在使用Xcode5.0

更新:一段时间后,它会再次显示相同的错误,但是当我尝试使用设备构建时,它就消失了。但它仍然出现在模拟器中。不知道如何用模拟器解决它。

于 2014-03-03T12:48:47.023 回答