-
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
Pod Init Output is inconsistient #5378
Comments
can you give us some examples zipped up? |
I just noticed the same thing with this project: test12.xcodeproj.zip (which is just a fresh project with one extra target added) It has two targets:
But the generated
|
It's really inconsistent for me; I created a few projects and it seemed to do either way on a consistent basis. But it would do the same thing for each project. Here's two of the folders I'm working with: https://github.com/edjiang/cocoapods-issue-5378 |
My guess is that's because they have Test in the target name, but I'm unsure. |
Ah, that makes sense. I'm building a pod so have a bunch of random projects named 'XYZ Test" recently. Thought it was potentially a change in 1.0. I thought Cocoapods used to also generate a target for tests though? |
It does, but it assumes that "XXX Test" is a test target for "XXX" - so when "XXX" doesn't exist, it doesn't show it. Sounds like a a bug. |
Agree it's a bug, just was guessing at the cause 😉 |
Oh, it should probably use the product type to determine the identity, not the name :) |
@neonichu iirc I didn't do that because |
Thanks for fixing this! |
Report
On some projects, I run
pod init
and it gives me:On others, I get:
What did you do?
I ran
pod init
in several empty, new projects.What did you expected to happen?
I expected the targets to show up in the podfiles.
What happened instead?
The target is missing in new podfiles
CocoaPods Environment
Stack
Installation Source
Plugins
The text was updated successfully, but these errors were encountered: