Yeah it can be frustrating. Here are 4 steps I take whenever I setup a new Sparrow project.
First off I have Sparrow located at the following path and I change my directory name to the version of Sparrow that I downloaded like so:
/Users/levieggert/xcode/sparrow_2.0
Now to get up and running copy a barebone, scaffold, or demo project somewhere and open up in XCode. Now my 4 steps.
- In XCode go to your project's build settings and User Header Search Paths should have the following. Note the /** at the end. This will be different in the next step.
/Users/levieggert/xcode/sparrow_2.0/sparrow/src/**
- Go to XCode/Preference/Locations/SourceTrees and select the plus symbol.
You will see Setting Name, Display Name, and Path. Add the Setting Name and Path like so. Notice the path does not have /** at the end.
Display Name: SPARROW_SRC
Path: /Users/levieggert/xcode/sparrow_2.0/sparrow/src
3.
At this point you should be able to build and run. However, if your project builds but does not launch to the simulator or device check your schemes and make sure Sparrow is not selected and that the Barebone, Demo, or Scaffold scheme is selected with a device to run on.
4.
If nothing is still running and your still getting the Sparrow.h not found I would do a product clean on XCode, then quit XCode Application completely out, delete your derived data (link below), then open XCode, then try building again. Sometimes things get Cached in XCode project and that is what I do to clear it out.
http://programmersweb.blogspot.com/2011/05/clearing-xcode-4s-derived-data.html
Also note I am running Sparrow 2.0 on XCode 4.6.3