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:
- WebObjects 5.2.x
- Xcode 1.5 (Mac OS X 10.3.x)
- Xcode 2.0 (Mac OS X 10.4)
To resolve this issue, force xcodebuild to recreate the Java file list every time you build the project.
- Open the project in Xcode.
- In the Groups and Files list, open the Targets list, and double-click the Application Server target to put it into editing mode.
- Click Settings and select Expert View.
- Click the plus sign (+) button to add a new build setting.
- In the Name column, enter JAVA_FORCE_FILE_LIST, and in the Value column, enter YES.
- Close the project.
- Rebuild the project with the xcodebuild command-line tool.
The project should now build successfully.