Update paths and defines in wx.xcconfig. Open in Xcode, copy scintilla and rename to lexilla. Then manually check the file for more scintilla usages and duplicate them for lexilla with the correct identifiers.
moving fix_xcode_ids to python 3 and make it importable, the current AppleScript dictionary from Xcode makes it impossible to use it for our purpose