cocoaphony, I have a local variable declared in my Package.swift for
swiftSettings
so I can use it in a couple of places. It seems that if I move the declaration to the bottom of the file, afterlet package =
, it is simply ignored. It still compiles, but the options aren't passed to the compiler. If I move it to the top of the file, it works.I'm currently moving to @mattiem's solution (https://github.com/mattmassicotte/PackageTemplate/blob/main/Package.swift#L35-L39). But is this a bug, or intentional behavior?
Add comment