使用 Xcode 4.0 在 iPhone 模拟器中集成 GDATA 时出现问题
我按照以下步骤将 GData 添加到我的项目中。
参考来自我正在关注本教程
- 从 svn checkout 下载源文件http://gdata-objectivec-client.googlecode.com/svn/trunk/ gdata-objectivec-client-read-only 通过终端。
- 将下载文件中的源文件夹拖到我的 xCode 项目中。
- 更改了以下构建设置 C 语言方言:C99 [-std=c99](用于调试和发布) 其他 C 标志:-DDEBUG=1(仅用于调试) 标头搜索路径:/usr/include/libxml2(用于调试和发布) 其他链接器标志:-lxml2(用于调试和发布)
但是在构建代码时出现一些错误。
Error 1: /Users/rajesh/Desktop/GooDataContacts/../../gdata-objectivec-client-read-only/Source/HTTPFetcher/Tests/GTMGatherInputStreamTest.m:16:40: error: SenTestingKit/SenTestingKit.h: No such file or directory
Error 2: /Users/rajesh/Desktop/GooDataContacts/../../gdata-objectivec-client-read-only/Source/HTTPFetcher/Tests/GTMGatherInputStreamTest.m:21: error: cannot find interface declaration for 'SenTestCase', superclass of 'GTMGatherInputStreamTest'
Error 3: file://localhost/Users/rajesh/gdata-objectivec-client-read-only/Source/HTTPFetcher/Tests/GTMGatherInputStreamTest.m: error: Lexical or Preprocessor Issue: 'SenTestingKit/SenTestingKit.h' file not found
I'm following the following steps to add GData to my project.
Reference from I'm following this Tutorial
- Downloaded the source file from svn checkout http://gdata-objectivec-client.googlecode.com/svn/trunk/ gdata-objectivec-client-read-only through terminal.
- Dragged the source folder from the downloaded file into my xCode project.
- Changed following build settings
C Language Dialect: C99 [-std=c99] (Both for Debug and Release)
Other C Flags: -DDEBUG=1 (Only for Debug)
Header Search Paths: /usr/include/libxml2 (Both for Debug and Release)
Other Linker Flags: -lxml2 (Both for Debug and Release)
But I'm getting some error when I build the code.
Error 1: /Users/rajesh/Desktop/GooDataContacts/../../gdata-objectivec-client-read-only/Source/HTTPFetcher/Tests/GTMGatherInputStreamTest.m:16:40: error: SenTestingKit/SenTestingKit.h: No such file or directory
Error 2: /Users/rajesh/Desktop/GooDataContacts/../../gdata-objectivec-client-read-only/Source/HTTPFetcher/Tests/GTMGatherInputStreamTest.m:21: error: cannot find interface declaration for 'SenTestCase', superclass of 'GTMGatherInputStreamTest'
Error 3: file://localhost/Users/rajesh/gdata-objectivec-client-read-only/Source/HTTPFetcher/Tests/GTMGatherInputStreamTest.m: error: Lexical or Preprocessor Issue: 'SenTestingKit/SenTestingKit.h' file not found
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论