Unused Schemes clutter up the Schemes list, and the Pod Schemes are not really necessary. pod install recreates them every time, which should be avoided.
Those schemes are necessary to build the pods?
No they are not. I always delete them and the build works fine.
The schemes that are created should be hidden.
I use AppCode. Not sure if it supports hidden schemes.
Ah well that sounds like an AppCode issue then!
I still do not understand why cocoapods needs to create these schemes. I think its unnecessary.
Feel free to make a PR changing the behaviour, but as it's not really harmful, it's not a high priority.
This is interesting. I dug back in the history a bit to get a sense of why the schemes exist at all. Looks like they were added in 0.26 as a way to specifically compile a single pod.
IMO that's a feature no-one needs. I'd be :+1: on removing the per-pod schemes.
I'm worried that scheme auto-creation will recreate all of those schemes, and they will no longer be hidden, so this requires some exploration.
Closing. if appcode has that same visibility toggle is really irrelevant to the correct management of the targets in the pods projects, either cocoapods will make them or xcode will because if you want to build anything that isn't an explicit dependency you need a scheme.
Please reopen. The setting whether a scheme should be shown (isShown) is stored in xcschememanagement.plist in xcuserdata. So the setting is per-user which is impractical for version controlled projects - which will have xcuserdata in .gitignore.
I'd strongly suggest to just not create these schemes as they are not needed for anything.
I'm having the same problem on AppCode. If these schemes are superfluous, please reopen and consider a fix.
I'd like this to be fixed as well or at least to have them all hidden by default or with some configuration. If you hide them, once you run pod install they show up again.
As these schemes are not needed, I'd rather suggest not creating them in the first place.
These schemes are a necessary building block for things like CocoaPods/pod-template#106
My suggestion would be building a plugin that removes schemes you don't want automatically via a post_install hook.
We also have the issue in Xcode where after each pod update 100+ schemes are recreated automatically.
Looks like schemes for normal Pods are hidden while for development Pods they are not.
The scheme dropdown list in Xcode is so long that we have to scroll it all the time we want to switch our app target.
Note that Autocreate Schemes in Xcode is turned off.
Please provide an option to prevent scheme creation. Even if just by honoring Xcode's Autocreate Schemes option.
Also pod update became a lot slower in the recent months and by preventing scheme auto-creation we can easily save some time here.
An option sounds acceptable
Since this issue is closed should I create a new one with the suggestion to add such an option?
Hi, I've encountered similar behaviour.
I'm using 0.37.2 and when I'm executing pod install / pod update it creates schemas for all the development pods (and the annoying thing is that it always selects the first created one).
The schemes are _visible_ and _shared_.
From what I can see, it happens only when I specify the development pods inside a target.
target "AppTarget" do
pod "devPod", :path => "devPod"
end
I've downgraded to 0.35.0, and I don't see this happening.
Any thoughts?
As stated before, this is deliberate. We'd be happy to accept a PR which adds a configuration option to turn it off, though.
I'm also having this issue since we upgraded to 0.37.2. After each pod update it will recreate schemes for all pods it has. and the development pods are marked as visible and shared and it selects one of them as active one (even though we have selected our app scheme before)
this was not an issue before in 0.33.1. So this was introduced as some kind of "new" in the version between 0.35 (as @danielpetroianu mentioned) and 0.37.
See #3824 for more discussion on this and the fix we're going to do.
I tried reading through #3824 and I can't tell what the resolution is. Is there a final word yet?
Any updates on this? As of February 2016, with CocoaPods 0.39.0, running pod install / pod update still creates Schemes (which is fine to me), but makes them visible ('Show' is checked) and also shared ('Shared' is checked). Furthermore, it makes the first one selected, as some folks have indicated before.
I would also like pod update not to create these schemes. any updates on this?
You use this by adding this to your Podfile:
install! 'cocoapods',
:share_schemes_for_development_pods => false
Most helpful comment
You use this by adding this to your
Podfile: