Welcome to the Three20 forums! Before you dive too deep into things, please read our forum rules.
three20 and xcode4.3 : lexical or preprocessor issue file not found
  • Vote Up0Vote Down afmoafmo March 2012
    Posts: 4

    Hi all. I have add three20 to my project successfully. but I got 2 issues:

    1- ld: warning: directory not found for option '-L/Projects/iphone/myProj/three20/Build/Products/Debug-iphoneos

    2- file not found when I import "Three20/TTStyleSheet.h" and others

    I have added these: "$(BUILT_PRODUCTS_DIR)/../three20" "$(BUILT_PRODUCTS_DIR)/../../three20" "three20/Build/Products/three20" in header search paths as well.

    I am using Xcode 4.3 and iOS 5.1.

    any suggestion to fix these 2 issuses thanks

  • 5 Comments sorted by
  • Vote Up1Vote Down afmoafmo March 2012
    Posts: 4

    warning was coursed by Library Search Paths which used to mention three20/Build/Products/Debug-iphoneos by deleting that I have no warning.

    But I still have "lexical or preprocessor issue file not found" error.

  • Vote Up1Vote Down afmoafmo March 2012
    Posts: 4

    I have just figure out it was a stupid mistake that I did and import directly header files (like "Three20/TTStyleSheet.h" ) to my classes instead of importing "Three20/three20.h"

  • Vote Up0Vote Down afmoafmo March 2012
    Posts: 4

    I'm pretty close to giving up.

  • Vote Up0Vote Down bmungebmunge June 2012
    Posts: 1

    I'm having the exact same issue, even when I try importing Three20/Three20.h. I have added all the recommended search paths but still nothing. Did you ever get past this issue?

  • Vote Up0Vote Down patrickpatrick June 2012
    Posts: 0

    Have a check on the project.pbxproj file.

    If it is like that: HEADER_SEARCH_PATHS = ( "$(BUILT_PRODUCTS_DIR)/../three20", "$(BUILT_PRODUCTS_DIR)/../../three20", );

    It is wrong. It should be like that: HEADER_SEARCH_PATHS = ( "\"$(BUILT_PRODUCTS_DIR)/../three20\"", "\"$(BUILT_PRODUCTS_DIR)/../../three20\"", );

    I had this once and it was difficult to debug. So just add '\' That happens with a specific update on XCode.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Twitter

Sign In Apply for Membership

In this Discussion

Latest Three20 version: 1.0.5

Who's Online (0)