See among other things, this post.
After quite a bit of working around issues, I got my project setup correctly using tuist while Xcode 11.5 was selected (so tuist would work). I then decided to run “tuist up”.
It worked just fine in that it built all the carthage dependencies I had listed. What I did not realize is they were built using my selected Xcode, and thus using the latest swift compiler available there. Since the rest of my app requires Swift 4.2 problems ensue.
It would be great if, for the
tuist up one could specify the desired Xcode version. The command would use
Xcode-select to discover the current setting, use it also to change to the desired version, do the “up” work, and then change it back.
I realize that:
- This could cause conflicts elsewhere on the computer if it is using Xcode or Xcode tools, but it would be acceptable to me
- I can run carthage manually to get around this
- it would be even nicer if, somehow the version of the swift compiler could be controlled.
- There may be a way by manipulating environment variables before forking carthage…