Is it possible to apply an Xcode extension to multiple source files at once? If so, how?
Asked Answered
D

1

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?

Downe answered 1/1, 2017 at 11:31 Comment(1)
alternate you could use Sourcery.Fearful
F
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.

Fearful answered 28/5, 2017 at 19:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.