Automatically generates Xcode projects for Jai code to enable:
- Code browsing and navigation
- File organisation
- Debugging support
Download Xcode_Generator.jai
and place it in your project’s modules directory, or other modules path.
Supports the Default_Metaprogram, just has to be able to find Xcode_Generator.jai as a module.
# From this test project directory
jai -import_dir ../modules src/test.jai +Xcode_Generator
See build_with_xcode.jai
for an example of manual plugin integration in build scripts.
- Organises source files by directory structure
- Groups system modules under “System Modules” folder
- Groups user modules under project modules folder
- Generates proper
.xcscheme
files for debugging - Creates unique project names based on executable name
Creates {executable_name}.xcodeproj
in the working directory containing:
project.pbxproj
: Main project file with all source referencesxcshareddata/xcschemes/{executable_name}.xcscheme
: Debug/run scheme
my_project/ ├── src/ │ └── test.jai └── modules/ ├── Xcode_Generator.jai └── UserModule/ └── module.jai
Usage from project directory: jai -import_dir ../modules src/test.jai +Xcode_Generator
- The generated Xcode project is for browsing and debugging only
- Actual compilation still happens through Jai
- Project names are based on executable name to avoid conflicts
- Creates projects in the compiler’s working directory