将 google api 与 iphone sdk 集成时出错
我正在开发一个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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
包含此框架
SystemConfiguration.framework
Include this framework
SystemConfiguration.framework