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      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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.