问题描述
我尝试使用命令行添加带有JSON的Three20:
I tried to use command line to add Three20 with JSON :
python three20 / src / scripts / ttmodule.py -p JsonTest / JsonTest.xcodeproj Three20 \\ textThree20JSON: extThree20JSON + SBJSON
python three20/src/scripts/ttmodule.py -p JsonTest/JsonTest.xcodeproj Three20 extThree20JSON:extThree20JSON+SBJSON
此命令行成功执行,没有任何错误消息。我可以在直接依赖项中找到extThree20JSON + SBJSON及其在链接库中的链接。
this command line successfully executed without any error message. I can find "extThree20JSON+SBJSON" in Direct dependencies and its link in linked libraries.
当我使用JSON导入构建项目时:
#importextThree20JSON /SBJSON.h
When I build my project with JSON import: #import "extThree20JSON/SBJSON.h"
xcode报告:错误:extThree20JSON / SBJSON.h:没有这样的文件或目录
xcode reported: error: extThree20JSON/SBJSON.h: No such file or directory
请帮助:(
推荐答案
我遇到了同样的问题并且解决了它。
I had the same problem and just solved it.
-
将extThree20JSON.xcodeproj添加到您的项目中。
Add the extThree20JSON.xcodeproj to your project by draging it in.
添加extThree20JSON + SBJSON指向应用程序目标的
构建阶段中的目标依赖关系。
Add the extThree20JSON+SBJSON to the Target Dependencies in theBuild Phases of your app's target.
添加libextThree20JSON + SBJSON.a库应用到应用目标的构建阶段中的链接二进制文件和
库。
Add the libextThree20JSON+SBJSON.a library to the Link Binary WithLibraries in the Build Phases of your app's target.
编辑
项目的构建设置中的用户标题搜索路径,添加以下路径:
Edit the User Header Search Paths in the Build Settings ofyour project, add the following paths:
- ../ three20 / Build / Products / three20;
- ../../ frameworks / three20 / Build / Products / three20;
- ../ frameworks / three20 / Build / Products / three20;
- $(BUILT_PRODUCTS_DIR)/../ three20
- $(BUILT_PRODUCTS_DIR)/../../ three20
- ../three20/Build/Products/three20;
- ../../frameworks/three20/Build/Products/three20;
- ../frameworks/three20/Build/Products/three20;
- $(BUILT_PRODUCTS_DIR)/../three20
- $(BUILT_PRODUCTS_DIR)/../../three20
修改
应用目标的构建设置中的其他链接标记 ,添加以下标志:
Edit the Other Linker Flags in the Build Settings of yourapp's target, add the following flags:
有关手动添加Three20的更多信息:
More information on manually adding Three20: http://chepri.com/2011/04/22/visual-guide-manually-adding-three20-xcode-4-project/
这篇关于如何在Three20中添加json模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!