- Click "Build Settings"
- Search it for flag.
- Add -lz to "Other Linker Flags"
- Select "Build Phases"
- Move a ggo file from "Copy Files" to "Compile Sources"
- Select "Build Rules"
- Select a menu "Editor -> Add Build Rules"
- Copy the following two lines and paste them to the rule. cd "$INPUT_FILE_DIR" /usr/local/bin/gengetopt -i "$INPUT_FILE_NAME" --output-dir="$DERIVED_SOURCES_DIR" --file-name=cmdline --unamed-opts --func-name=my_cmdline_parser --include-getopt
- Type in *.ggo in the Process input box.
- Add the following two folders from the alder cocoa projects: file and bstrlib.
- Create a folder named after the project name without "alder-"
- Move the main source and header files to the newly created folder.
.Alder command line
- Add a new rule
- Move alder-something.ggo to the source code
- Add other packages to the given project