jsq,
@jsq@mastodon.social avatar

I guess no one who works at Apple has ever used git branches with Xcode and SwiftPM.

This 4 year old bug is still not fixed.

https://forums.swift.org/t/missing-package-product-error-for-all-local-swift-packages-when-switching-git-branches/38041

amonshiz,
@amonshiz@mastodon.social avatar

@jsq SPM remains the best way to build software for Apple platforms.

giladronat,
@giladronat@mastodon.social avatar

@amonshiz @jsq I’ve gone back to work with pods after a few years of SPM and pods at least feel deterministic. Team may move to SPM soon and I dread it.

amonshiz,
@amonshiz@mastodon.social avatar

@giladronat @jsq go directly to a real build system like Bazel or Buck2 and skip the waste of time known as SPM. You will be happier and more productive.

jsq,
@jsq@mastodon.social avatar

@amonshiz @giladronat not sure about “happier” 😂

giladronat,
@giladronat@mastodon.social avatar

@jsq @amonshiz I heard good things from engineers who reap the benefits of those systems, but only when there’s a ‘build engineer’ or a whole team dedicated to maintaining it. I haven’t tried either myself, but have found that daunting. I still like the idea of pointing to a git repo and have things just work™, so I really just wish SPM simply worked better 🙁

florianbuerger,
@florianbuerger@social.lol avatar

@jsq Not a solution, but I've added a post-checkout hook for branch checkouts to close the Xcode project, restore the resolved file (which sometimes gets deleted by Xcode), then open the project again.

Has some issues, esp. while rebasing, but so far is has been better than running into those build issues every time.

jsq,
@jsq@mastodon.social avatar

@florianbuerger I just did something similar for my team. Will write a blog post soon.

bealex,
@bealex@mastodon.social avatar

@jsq it took me days to find out that I need to reopen the project to fix this. Drives me mad.

gernot,
@gernot@mas.to avatar

@jsq Nothing related to SwiftPM works reliably. Since years. It’s infuriating.

finnvoorhees,
@finnvoorhees@mastodon.social avatar

@jsq this is such a massive issue. I’m guessing I’ve wasted >20 minutes per week for the last 2 years resetting caches/derived data and waiting for a clean build just because of this

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