Skip to content

Instantly share code, notes, and snippets.

@perseusrealdeal
Last active April 21, 2023 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perseusrealdeal/8951b10f4330325df6347aaaa79d3cf2 to your computer and use it in GitHub Desktop.
Save perseusrealdeal/8951b10f4330325df6347aaaa79d3cf2 to your computer and use it in GitHub Desktop.
How to install swift package with Carthage.

Cartfile contains:

github "perseusrealdeal/PerseusDarkMode" == 1.1.3
github "perseusrealdeal/PerseusUISystemKit" == 1.1.2

Step 1: $ carthage update

Step 2: $ (cd Carthage/Checkouts/PerseusDarkMode && swift package generate-xcodeproj)

Step 3: $ (cd Carthage/Checkouts/PerseusUISystemKit && swift package generate-xcodeproj)

Step 4: Open PerseusDarkMode.xcodeproj

Step 5: Edit project settings for building

Step 6: Open PerseusUISystemKit.xcodeproj

Step 7: Edit project settings for building

Step 8: $ carthage build --use-xcframeworks

or

Step 8: $ carthage build

Setp 9: Add PerseusDarkMode and PerseusUISystemKit frameworks as files from Build folder to a host project

Carthage documentation.

Carthage 0.34.0 for macOS High Sierra 10.13.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment