Skip to content
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

pod install Creates Schemes for Pods #3165

Closed
fabb opened this issue Feb 20, 2015 · 27 comments
Closed

pod install Creates Schemes for Pods #3165

fabb opened this issue Feb 20, 2015 · 27 comments
Labels
t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future.

Comments

@fabb
Copy link

fabb commented Feb 20, 2015

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.

@segiddins
Copy link
Member

Those schemes are necessary to build the pods?

@fabb
Copy link
Author

fabb commented Feb 21, 2015

No they are not. I always delete them and the build works fine.

@kylef kylef added the t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future. label Feb 21, 2015
@segiddins
Copy link
Member

The schemes that are created should be hidden.

@fabb
Copy link
Author

fabb commented Feb 22, 2015

I use AppCode. Not sure if it supports hidden schemes.

@segiddins
Copy link
Member

Ah well that sounds like an AppCode issue then!

@fabb
Copy link
Author

fabb commented Feb 22, 2015

I still do not understand why cocoapods needs to create these schemes. I think its unnecessary.

@segiddins
Copy link
Member

Feel free to make a PR changing the behaviour, but as it's not really harmful, it's not a high priority.

@orta
Copy link
Member

orta commented Feb 22, 2015

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 👍 on removing the per-pod schemes.

@segiddins
Copy link
Member

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.

@segiddins
Copy link
Member

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.

@fabb
Copy link
Author

fabb commented Feb 28, 2015

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.

@J-Rojas
Copy link

J-Rojas commented Mar 20, 2015

I'm having the same problem on AppCode. If these schemes are superfluous, please reopen and consider a fix.

@asalom
Copy link

asalom commented Jun 16, 2015

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.

@fabb
Copy link
Author

fabb commented Jun 16, 2015

As these schemes are not needed, I'd rather suggest not creating them in the first place.

@neonichu
Copy link
Member

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.

@fluidsonic
Copy link
Contributor

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.

@neonichu
Copy link
Member

An option sounds acceptable

@fluidsonic
Copy link
Contributor

Since this issue is closed should I create a new one with the suggestion to add such an option?

@danielpetroianu
Copy link

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?

@neonichu
Copy link
Member

neonichu commented Jul 9, 2015

As stated before, this is deliberate. We'd be happy to accept a PR which adds a configuration option to turn it off, though.

@Buju77
Copy link

Buju77 commented Jul 27, 2015

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.

@neonichu
Copy link
Member

See #3824 for more discussion on this and the fix we're going to do.

@jaredsinclair
Copy link

I tried reading through #3824 and I can't tell what the resolution is. Is there a final word yet?

@eneko
Copy link

eneko commented Feb 19, 2016

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.

@1ak31sha
Copy link

1ak31sha commented May 5, 2016

I would also like pod update not to create these schemes. any updates on this?

@segiddins
Copy link
Member

See #5254

@revolter
Copy link
Contributor

You use this by adding this to your Podfile:

install! 'cocoapods',
    :share_schemes_for_development_pods => false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t3:discussion These are issues that can be non-issues, and encompass best practices, or plans for the future.
Projects
None yet
Development

No branches or pull requests