1

I pulled the latest version of three20 from github and installed their template. I opened it up in XCode, built it, ran it, then I realized the template isn't iOS4 ready.

The first issue I found was "Base SDK not found". I solved it in Edit Project Setting by changing the Base SDK to "iOS Device 4.1".

Then I ran it again. I got tons of errors related to "Three20/Three.h: No such file or directory". I added the "../three20/src" to my Header Search Paths but it doesn't help.

Does anyone know why? What else should I change?

FYI:
XCode Version 3.2.4
Latest version of three20 (29 September)

Directories:
xcode/myproject/
xcode/three20/

PS: the template works fine in SDK 3.0

cowls
  • 24,013
  • 8
  • 48
  • 78
kayue
  • 2,546
  • 3
  • 20
  • 16

5 Answers5

2

I was pulling my hair out as well since adding three20 correctly to your new iOS4 with really basic instructions listed here: http://github.com/facebook/three20 did not work as well.

Issue: Can compile newly three20 to your iOS project and got this error: Can't find #import "Three20/Three20.h".

Here is the best solution for those have the same issue:
1) Add your three20 to your iphone project path like this:
[yourProjectPath]/[iOSProjectName]/three20/..
2) cd three20 dir
3) run:
python src/scripts/ttmodule.py -p [yourProjectPath]/[iOSProjectName]/[iOSProjectName].xcodeproj Three20 -c Debug -c Release
4) go to XCode and do a build now.

Thanks to jverkoey for adding this in ...man
u save us a lot of headache if u ever read this :- ) kudos bud! :- )
http://github.com/facebook/three20/commit/0814b1c149cbe987557c88a271f999c3f9f3ae64

Please vote this answers if it help u. Thanks :-)

tomtom
  • 99
  • 1
  • 6
0

Turn out I have to use http://github.com/ECP/three20 instead .

kayue
  • 2,546
  • 3
  • 20
  • 16
  • There are hundreds of branches of facebook/Three20. This one u choosed seems to be quite outdated, as it was last touched july 6th, while facebook/Three20 has it last commit on august 20th – vikingosegundo Sep 30 '10 at 08:33
  • And this one is meant to be "project settings to work on ios4 + 3.1.3 as an example" Actually if you are using the latest XCode, you still need to reset the base sdk. But this is all you have to do. It works. – kayue Oct 01 '10 at 02:34
0

An answer I got from twitter - "need to manually set build target of each projects"
He might be right.

kayue
  • 2,546
  • 3
  • 20
  • 16
0

My solution was to add the following to the Header Search Path in Xcode:

three20/Build/Products/three20

Xcode 4 screen shot:

Xcode header search path

Yours may be different of course, but maybe this will help someone.

Rene Pot
  • 24,681
  • 7
  • 68
  • 92
Banjer
  • 8,118
  • 5
  • 46
  • 61
-1

Also, try checking the Deployment Target under Project Settings, for both, Simulator and Device. In my case, I got thousands of errors because the target was set to 2.2. It seems there is no support for 2.2 anymore in iOS 4.1 and Xcode 3.2.4.

milpita
  • 334
  • 2
  • 7