cocoaphony,
@cocoaphony@mastodon.social avatar

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, after let 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?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • Durango
  • DreamBathrooms
  • InstantRegret
  • tacticalgear
  • magazineikmin
  • Youngstown
  • thenastyranch
  • mdbf
  • slotface
  • rosin
  • Leos
  • kavyap
  • modclub
  • ethstaker
  • JUstTest
  • everett
  • GTA5RPClips
  • cubers
  • khanakhh
  • ngwrru68w68
  • anitta
  • provamag3
  • cisconetworking
  • tester
  • osvaldo12
  • megavids
  • normalnudes
  • lostlight
  • All magazines