WebObjects 5.2: xcodebuild won‘t build a project

Sometimes a WebObjects application that builds successfully in Xcode may not build with the command-line tool "xcodebuild." You may see errors such as "Cannot resolve symbol." This issue affects:

To resolve this issue, force xcodebuild to recreate the Java file list every time you build the project.

  1. Open the project in Xcode.
  2. In the Groups and Files list, open the Targets list, and double-click the Application Server target to put it into editing mode.
  3. Click Settings and select Expert View.
  4. Click the plus sign (+) button to add a new build setting.
  5. In the Name column, enter JAVA_FORCE_FILE_LIST, and in the Value column, enter YES.
  6. Close the project.
  7. Rebuild the project with the xcodebuild command-line tool.

The project should now build successfully.

Published Date: Feb 19, 2012