7

I want to write an Xcode extension that scans the source code for particular code fragments. However, it seems that such extension would work only on a per-file basis. For example, here you can see that upon pushing a button only the current source file is changed. Is there a way to scan multiple source files at once?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
You_got_it
  • 331
  • 3
  • 12

1 Answers1

3

I am afraid it is not possible yet. As if you see the documentation in here

https://developer.apple.com/reference/xcodekit

the Framework has really a little few Classes, which none of them indicates multiple files... As you can see, you can edit text from Buffer from current opened tab in Xcode, which makes it a little bit complicated. The buffer can be used only in context of file (imagine hell of 10000000 lines of code loading into buffer and manipulating with such text) I believe in future apple will extend this to the max, but for now, we must be happy with what we have... Sorry for disappointing news.

Dominik Bucher
  • 2,120
  • 2
  • 16
  • 25