Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Xcode OTD Syntax Highlighting Support

This folder contains a plug-in that brings syntax highlighting of OTD language into Xcode.

Adding Syntax Highlighting for Xcode

To install, run the install.py script :

script/xcode/install.py

The script will copy the required files into your user Xcode folder :

~/Library/Developer/Xcode/Plug-ins/otd.ideplugin
~/Library/Developer/Xcode/Specifications/otd.xclangspec

Then restart Xcode.

If the bundle is recognised, Xcode will issue a warning when starting for the bundle to be non Xcode standard, but Ask it to Load the Bundle. (the bundle does not contain any code anyway)

If the bundle cannot be loaded, this is most likely because it needs to have the exact Xcode unique identifier in its compatible UUID list.

To do so :

  • Open otd.ideplugin/Contents/Info.plist into a text editor
  • Locate the array of UUID for key DVTPlugInCompatibilityUUIDs,
  • Add the UUID of your Xcode version (see below).

To get the UUID of your Xcode version, type in the Terminal :

defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

Where Xcode.app is the Xcode version you use.

Finally, please submit a Pull Request to the otdgen repository with the following properties :

  • Branch name : xcode-XXX-support where XXX is the Xcode version for which the UUID is missing,
  • One commit with message : Add Xcode XXX support,
  • Make sure that your branch is on top of the current master branch.