Using Workspace in XCode 4

Workspace in XCode

1) Create new Workspace (refer as WS)

2) Configure Workspace Settings
File > "Workspace Settings"
> Build tab
> Advance > Build Location > Derived Data Location

3) Add project to WS (refer as P), make sure it runs.

4) Configurating (P) "PROJECT > Build Settings"
> "Search Paths"
> "Always Search User Paths" = "Yes"
> "User Header Search Paths" = "../(libraryFolderName)/(libraryFolderName)"
OR
> "Header Search Path" = "../(libraryFolderName)/(libraryFolderName)"

> "Linking" > "Other Linker Flags" = "-ObjC"

5) Add library project to WS (refer as L), by right clicking on empty space in the "Project Navigator"
(Optional) Make sure library project "TARGET > Build Settings > Deployment > Skip Install" = "Yes"
(Optional)  If you plan test static library and have categories in it, add argument to "Other Linking Flags" and set it to "-ObjC"

6) Drag (L) into (P)

7) Configurating (P) "TARGETS > Build Phases"
> "Target Dependencies"
> Add (L) to list
> "Link Binary With Libraries"
> Add (L) to list

* Update the above steps is tested in old version of XCode 4.1

Comments

Popular posts from this blog

Generating INSERT statement from SELECT using SQuirreL SQL

Fixing the AKE BC398 USB3.0 sluggish performance

Built-in UITableViewCell's Styles (UITableViewCellStyle)