UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

How to pass additional xcodebuild flags through Xcode build settings

Forums > iOS

Hi everyone,

I am wondering how to pass -clonedSourcePackagesDirPath flag via Xcode build settings. I need it persisted in xcodeproj file so it is available on my CI as well as on my local machine. The idea is to have SPM clone packages in my project folder so that CI is not always downloading them and to avoid redownloading them on my local machine whenever I delete derived data folder. -clonedSourcePackagesDirPath is xcodebuild flag and it is easy to pass it through command line. I was following this article on how to set it up but it does not address my case https://uptech.team/blog/swift-package-manager

5      

I have the same question, did you find a solution?

3      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.