LAST CHANCE: Save 50% on all my Swift books and bundles! >>

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


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


Hacking with Swift is sponsored by Essential Developer.

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until July 28th.

Click to save your free spot now

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.