Reputation: 1099
I've tried to import the TTURLJSONResponse with #import , added the project to my project and added the library to the project dependencies. Now I've got an error that XCode can't find the header file. I can import "normal" Three20 without error. I can now build my project without error but in the editor it says that it can't find the header file. But it build without error.
Upvotes: 2
Views: 260
Reputation: 6729
Under your project Build, you need to set where xcode is gonna look for the headers, something like Header Search Path :
"$(BUILT_PRODUCTS_DIR)/../yourDirectory"
"$(BUILT_PRODUCTS_DIR)/../../yourDirectory"
and the Linker flags
Other Linker Flags : -ObjC -all_load
one other thing, don't forget to check the targets for each framework you wanna add
Upvotes: 0
Reputation: 5932
the three20 JSON extension , including TTURLJSONResponse
is a separated subproject, which isn't included in the standard three20 project. this means you will have to include the extension along with the standard three20 project.
There's a working example of it in the samples/TTTwitter project. This twitter example uses the three20 json extension to read json response from twitter. You can open the project and expand the Dependancies folder in that project.
To add the JSON Three20 Extension to your project, it should be enough to drag the src/extThree20JSON/extThree20JSON.xcodeproj
into your project
Upvotes: 0
Reputation: 1099
Ok I solved it by creating a new project and make all settings again. Now it works.
Upvotes: 2