I have this setup. I have one main project, that has few targets, that are reused across sub-project. So, a its a framework in general. And there is a SwiftLint
enabled in that main project.
Now I have few classes, that are same across all sub-project and I have to move them to main project (main library) so that all sub-projects will reuse that one class.
But, that class uses R Swift
, and its R.generated.swift
files.
I guess I am going wrong way here, but I tried to move that class in a main project, and to change Build phase from generating R.generated.swift
files in its project root, to main project root.
When I did that, SwiftLint of course yelled with many errors. So I tried to exclude R.generated.swift
from checks in swiftlint.yml
file with:
**/R.generated.swift
but it failed with some syntax error.
Anyway, I think even if figure out the syntax, maybe I am going with wrong logic here?
Is there some other way here to solve this, or at least what would be correct syntax to exclude R.generated.swift
file from SwiftLint
checks?