How to add local package to Xcode Swift project?

878 views Asked by At

I want to add SwiftyDropbox package locally to my Xcode Swift project so it builds fastest.

I added dependency to SwiftyDropbox github URL and it runs ok, but takes over a minute to build after Xcode clean (ie. realclean).

I'm following Apple's article "Editing a Package Dependency as a Local Package" but step 3. doesn't work: "Select the Swift package’s folder in Finder and drag it into the Project navigator".

enter image description here

2

There are 2 answers

0
Hai Feng Kao On

You can use the Add Local... button use "Add Local..." button

0
Vitalii Boiarskyi On

I've added it to the local repo and then added the local path to the folder of that repo.

file:///absolute_path

enter image description here