Closed CraigSiemens closed 8 months ago
@CraigSiemens Thanks for reporting this, I will take a look at this as soon as I can to see what I can do to resolve it
@CraigSiemens Turns out this was a pretty simple fix, PR is up here and it will go out when we do our next release.
Summary
When
apollo-ios-xcframework
is added as a dependency using Carthage, it is built two times even though it only produces one framework.Version
1.7.1
Steps to reproduce the behavior
apollographql/apollo-ios-xcframework
as a Carthage dependency in a project.carthage build
Logs
Anything else?
It appears to be caused by there being two schemes in the workspace with the name
Apollo
. Runningxcodebuild -list
in the repo shows the following.One is the shared scheme in the project and the other is autogenerated from the swift package target also called
Apollo
. Carthage then builds each scheme it finds that has the same name as a shared scheme in the project. Since two have the same name, it builds them twice.A workaround seems to be renaming the scheme before running Carthage, then there's only one listed scheme that matches the name of a shared scheme.
Related issue https://github.com/Carthage/Carthage/issues/3358