Skip to content

Instantly share code, notes, and snippets.

View insanj's full-sized avatar
🎉
insanj.com

Julian Weiss insanj

🎉
insanj.com
View GitHub Profile

iOS Create a Carthage Supported Framework

Forked from @iOSBySheldon. Cleaned up by @insanj.

A little bit Background of Carthage:

  • Carthage works like Cocoapods, but a little bit simpler.
    • When creating a Cocoapods supported framework need a .podspec file to do some config, which is not required by Carthage.
    • When using a Cocoapods supported framework, a workspace file will be automatically created, the umbrella header will be setup in a pod project inside workspace. It feels simple, but the whole process creates a lot files including a "giant" workspace.
    • When using a Carthage supported framework, it will just download the framework, and its dependencies if any, to a folder. All we need to do is to drag and drop it to the binary linking section in the project build setting tab, for the first time. It sounds complicated but it makes the project cle