I created a new template that uses static library but when I create a new project the code completion doesn't work for static library. I can build and run the new project well.
This is an example how to add static library in a template with XCode 4.
<key>Configurations</key>
<dict>
<key>Debug</key>
<dict>
<key>HEADER_SEARCH_PATHS</key>
<string>/Users/xxx/xxx/headers</string>
<key>LIBRARY_SEARCH_PATHS</key>
<string>/Users/xxx/xxx/lib/4.2/Debug-iphonesimulator</string>
<key>OTHER_LDFLAGS</key>
<string>-all_load -lxml2 -lMyLib</string>
</dict>
<key>Release</key>
<dict>
<key>HEADER_SEARCH_PATHS</key>
<string>/Users/xxx/xxx/headers</string>
<key>LIBRARY_SEARCH_PATHS</key>
<string>/Users/xxx/xxx/lib/4.2/Debug-iphonesimulator</string>
<key>VALIDATE_PRODUCT</key>
<string>YES</string>
<key>OTHER_LDFLAGS</key>
<string>-all_load -lxml2 -lMyLib</string>
</dict>
</dict>
Thanking you in advance.