Carthage / Carthage/Carthage

Specify dependencies for binary distributed frameworks

Open
#1,937 19 comments 15 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
15.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Hello,

For my company, I'm taking care of building and distributing a framework.
This framework contains proprietary code, and therefore cannot be distributed through git/github.

The archive is building just fine, and is correctly uploaded to our server. The clients can integrate the framework in their projects.

Unfortunately, our framework has a few dependencies(see Cartfile below), and currently the only way for ours client to integrate our framework is to make them add our dependencies to their Cartfile.

Is there a way to specify dependencies for frameworks distributed with the *binary* scheme?

I suppose it's not that big of an issue because they would have to add our dependencies to *Linked Frameworks and Libraries* and */usr/local/bin/carthage copy-frameworks* anyway, but it would be a bit cleaner to make Carthage handle the dependencies for binary frameworks.

Could we add the framework's Cartfile to the archive, and use it to resolve the final app's dependencies?
Or have I missed something?

* `carthage version`: 0.22.0
* `xcodebuild -version`: Xcode 8.3.2 Build version 8E200
* Are you using `--no-build`? No
* Are you using `--no-use-binaries`? No
* Are you using `--use-submodules`? No
* Are you using `--cache-builds`? Yes

**Cartfile**
```
github "DaveWoodCom/XCGLogger" ~> 5.0.1
github "marmelroy/Zip"
github "Alamofire/Alamofire" ~> 4.4
```

PS: see http://stackoverflow.com/questions/42409320/is-there-anyway-to-specify-library-dependencies-when-using-binary-origin for someone with the same issue

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.