an Objective-C library for iPhone developers
Objective-C C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
FWLib.xcodeproj
Sources
readme.txt

readme.txt

How to Use FWLib
================

1. Add the FWLib.xcodeproj to your project
2. Add these build properties to deal with the categories properly

    OTHER_LDFLAGS = -ObjC -force_load $TARGET_BUILD_DIR/libFWLib.a

3. To find headers do one one of the following -
    
    a) In XCode Preferences, create a Sources directory called "FWLIB" that points to your FWLib source tree and add this path to the build:

        USER_HEADER_SEARCH_PATHS = $(FWLIB)/**

    b) Add the library as a submodule
        
        USER_HEADER_SEARCH_PATHS = $(PROJECT_DIR)/lib/FWLib/**

4.

Caveats:
    Any file that JUST has categories in it will get stripped, I though force_load would fix this, but apparently not. The workaround is to
    define a throw away class in each "category" file. This is done with a macro, for example:
    
        FORCE_LINKER_TO_FIND_CATEGORY(NSManagedObjectContextExtensions);

Unanswered Questions