ios - ios6 和 Xcode 4.5 中的 Google 驱动器集成错误

标签 ios ios6 google-drive-api xcode4.5 google-api-objc-client

伙计们,我正在研究集成 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)

请帮助我,谢谢

最佳答案

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

Add the ObjC linker flag to the app target's build settingss:

Other Linker Flags: -ObjC



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

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

关于ios - ios6 和 Xcode 4.5 中的 Google 驱动器集成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13428019/

相关文章:

ios - 在 Swift 中采用 UITextInputTraits

ios - iOS 6 Beta 3 (ipad 3) 中的 UIAlertView 似乎没有触发委托(delegate)中的代码

objective-c - 如何在 UICollection 补充 View 中使用 UIButton?

ios - 使用 googledrive url scheme 和 iOS Sheets App 打开特定的 Google Sheet 子表

node.js - Box 或 Google Drive 作为 Nodejs Web 应用程序的存储

ios - 查找和替换术语

objective-c - 获取CCSprite在cocos2d中的绝对位置

ios - 哪些 native iOS API 可用于在我的应用程序中流式传输和播放音频数据?

iphone - 如何为 iphone 4 和 iphone 5 设置按钮框架

google-apps-script - 将 .XLSX 转换为 Google 表格并移动转换后文件的脚本