- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Users can control the working directory under Xcode for a specific executable as follows:
Under Groups & Files, expand the Executables group (this is different from Target) by left double-clicking on Executables. Right-click on the executable name of interest and select Get info. The Working directory selections available appear on the General tab.
The working directory is set to the Build Products directory by default. There are other selections for the Project directory or Custom directory. You can choose Custom Directory and then set the value to the directory containing the input files and reference input files by name in OPEN statements as you described you wish to.
Keep in mind the program uses this working directory during execution and it may be polluted with other files the program creates. To avoid that, set this to another custom scratch directory (relative to the Project directory) used strictly for execution and then modify the OPEN statements to use a relative path like: ../
Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page