NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

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

1      

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

   

Hacking with Swift is sponsored by Stream

SPONSORED Check out Stream's cross-platform open source chat SDK on GitHub! Write once and deploy your app with fully featured chat UI on iOS and macOS.

Go to GitHub

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

Reply to this topic…

You need to create an account or log in to reply.

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.