-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Targets configuration and abstract_target build #4863
Comments
Are you sure all of those targets have the same platform? |
Hey @segiddins thx for the reply. Well, i'm pretty sure i haven't done anything facy with the platforms, all of my app targets are on Also, my podfile example aren't changed much compared to my own podfile, the only thing i've done here is anonymize the project. Thanks for the time. |
@mrackwitz want to look into this since its deduplication related? |
Is deduplication in your |
Here my podfile :
I don't have a config file for cocoapods and here the version i'm currently on :
|
Mh, this doesn't give me any hint, why the generated pod targets should be duplicated. Could you paste the outputs of |
Hey @mrackwitz, i set the install to run and kinda forgot about it. Sorry about that, here you go: https://gist.github.com/lifely/7b6485b21eaf2e2d726c |
It seems like all targets are deduplicated as they should be. Don't worry about the aggregate targets. They don't increase the build time, as they only link together the targets in your Xcode project with the dependencies of all your pod dependencies. We have to use implicit dependencies with a target type which has an actual build product instead of aggregate targets as Xcode knows them, because we want to avoid having to add the |
@mrackwitz is this an issue we can close? |
Yes, if it was really a problem, we could fix, there are good chances that #4146 has addressed it. |
Hello,
I had to update my podfile today, following 1.0 update and changes.
I have a project with multiple target that represents my environements.
I previously didn't specified any target in the podfile like so :
And i figured out that this configuration doesn't work for multiple targets anymore.
So i looked around and found that the easiest way to define the same pods for all the targets was to use an
abstract_target
like so :However by doing so i saw my compile time explode, this solution made cocoapods generate an individual library for each targets.
I wonder what is possible now, to configure cocoapods to have a set of dependencies but only build one framework used for every targets.
The way i see the abstract_target feature would be to create a Pods framework to that name and link it against all dependents target.
Am i missing something ?
The text was updated successfully, but these errors were encountered: