将 google api 与 iphone sdk 集成时出错

发布于 2025-01-08 03:13:24 字数 2785 浏览 0 评论 0原文

我正在开发一个cocos2d应用程序,我需要集成youtube API来将视频上传到youtube。 我集成了从此处.并更改项目设置如下。

放 其他链接器标志: -lxml2

其他 C 标志: -DDEBUG=1

C语言方言: C99 [-std=c99]

添加了 标题搜索路径: /usr/include/libxml2 并添加了 libxml2.dlyb

但是当我构建项目时收到以下错误消息

Undefined symbols for architecture i386:
  "_SCNetworkReachabilityCreateWithName", referenced from:
      -[GDataOAuthSignIn startReachabilityCheck] in GDataOAuthSignIn.o
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[GDataOAuthSignIn startReachabilityCheck] in GDataOAuthSignIn.o
      -[GDataOAuthSignIn stopReachabilityCheck] in GDataOAuthSignIn.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[GDataOAuthSignIn startReachabilityCheck] in GDataOAuthSignIn.o
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[GDataOAuthSignIn stopReachabilityCheck] in GDataOAuthSignIn.o
  "_SecItemCopyMatching", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_SecItemDelete", referenced from:
      -[GDataOAuthKeychain removePasswordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_SecItemAdd", referenced from:
      -[GDataOAuthKeychain setPassword:forService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecAttrAccount", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecAttrGeneric", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecAttrService", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecClass", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecClassGenericPassword", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecMatchLimit", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecMatchLimitOne", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecReturnData", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecValueData", referenced from:
      -[GDataOAuthKeychain setPassword:forService:account:error:] in GDataOAuthViewControllerTouch.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

有人知道如何解决这个问题 项目是否需要任何额外设置?

I am developing a cocos2d app and I need to integrate youtube API to upload a video to the youtube.
I have integrated gdata api downloaded from here.And changed the project settings as follows.

set
Other Linker Flags:
-lxml2

Other C Flags:
-DDEBUG=1

C Language Dialect:
C99 [-std=c99]

added
Header Search Paths:
/usr/include/libxml2
and added libxml2.dlyb

But when I build the project getting the following error messages

Undefined symbols for architecture i386:
  "_SCNetworkReachabilityCreateWithName", referenced from:
      -[GDataOAuthSignIn startReachabilityCheck] in GDataOAuthSignIn.o
  "_SCNetworkReachabilitySetCallback", referenced from:
      -[GDataOAuthSignIn startReachabilityCheck] in GDataOAuthSignIn.o
      -[GDataOAuthSignIn stopReachabilityCheck] in GDataOAuthSignIn.o
  "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
      -[GDataOAuthSignIn startReachabilityCheck] in GDataOAuthSignIn.o
  "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
      -[GDataOAuthSignIn stopReachabilityCheck] in GDataOAuthSignIn.o
  "_SecItemCopyMatching", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_SecItemDelete", referenced from:
      -[GDataOAuthKeychain removePasswordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_SecItemAdd", referenced from:
      -[GDataOAuthKeychain setPassword:forService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecAttrAccount", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecAttrGeneric", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecAttrService", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecClass", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecClassGenericPassword", referenced from:
      +[GDataOAuthKeychain keychainQueryForService:account:] in GDataOAuthViewControllerTouch.o
  "_kSecMatchLimit", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecMatchLimitOne", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecReturnData", referenced from:
      -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o
  "_kSecValueData", referenced from:
      -[GDataOAuthKeychain setPassword:forService:account:error:] in GDataOAuthViewControllerTouch.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

Anybody know how to solve this problem
If any additional settings needed for the project?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清欢 2025-01-15 03:13:24

包含此框架SystemConfiguration.framework

Include this framework SystemConfiguration.framework

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文