views:

1168

answers:

6
+2  Q: 

Three20 and iOS 4

I'm trying to complie my app for iOS 4. It includes Three20. I've set the base SDK to "iPhone Device 4.0" and the Deployment Target to "iPhone OS 3.0" but I get this message:

"_OBJC_CLASS_$_TTURLRequestModel", referenced from:
    _OBJC_CLASS_$_MockPhotoSource in MockPhotoSource.o

What do I have to do?

A: 

You probably didn't set up three20 correctly. Go back to

http://github.com/facebook/three20

and follow the instructions on how to set three20 up w your project carefully.

jmont
A: 

jmont, probably you didn't tried to use three20 with iOS4 yet.

There is a problem when trying to compile it with iOS4 about the dependencies and optimized code.

I am also looking for a way to solve this problem, so if anybody finds out how, please let us know.

Thanks

Bruno
A: 

same here, keep me posted

Robert-Hein
Please "up vote" the question rather than adding a "me too" non-answer.
Stephen Darlington
And delete this answer to reduce noise.
Shaggy Frog
A: 

I had the same problem. I fixed it by ensuring that "Build active architecture only" (ONLY_ACTIVE_ARCH) in the xcode project properties, is checked in both the Three20 project and my project.

Dia Kharrat
+1  A: 

I think this thread explains most of the problems.

http://groups.google.com/group/three20/browse_thread/thread/90a57d469dfcc32d/85750d0c9b7c79de?lnk=gst&q=ios4#85750d0c9b7c79de

Also the updated code is available here..

http://github.com/ECP/three20

Hope this will help.

Thanks.

deamonsarea
A: 

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