-
Notifications
You must be signed in to change notification settings - Fork 403
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
Creating a lib without an example creates an Example directory #204
Comments
Hi @sssilver, If you don't want an example application you can't have view based testing as those require a host application. Best, |
Hmm, when view tests are turned off, the behavior is the same. It still creates an |
I also don't understand the directory structure. Every CocoaPod repo on GitHub has a .xcodeproj file in the root directory for editing and building source files. Where did this come from? |
The The |
...or by |
has anyone found a solution to this yet ? |
TL;DR : I only see the framework scheme (so no app target), so other than the name of the folder being Let us know if there's still an issue. Otherwise we'll close this in a couple of days. Long version: @inderdeep25 For this input:
I am getting this directory structure:
And when opening the project, I only see the framework scheme (so no app target), so other than the name of the folder being |
@jugutier, But isn't the |
I'm struggling with this as well.
Well it causes some confusion 😅 2 xcode projects are generated and a workspace that combine the 2 projects.
So the workspace should be used for development? Sources of your pod can be found in the But then again:
|
I’ll take another look at this tonight. Are you entering the same input to the interactive menu? @teameh |
Thanks for the quick reply! \0/ Yes:
|
Hi @teameh Sorry for the delay. We'll change the folder name to something other than example (at least for this configuration) I think it definitely is confusing for that setup. In the meantime yes, use the xcworkspace to develop and run pod install periodically in the test framework to make sure your podspec includes every file & asset the way you want. Essentially Let me know if that makes sense 👍 |
Yeah I think that makes sense. 👍 And maybe this is a bit off-topic... but I think it would also be nice if the |
Hi @jugutier Any idea when the changes discussed with @teameh above will be implemented? As of Cocoapods version 1.5.3, the behavior above is still the same, and I can concur that it's really confusing. Also, as an addition, when an example project is specified in the questionnaire presented by MyLib I never really understood why the Xcode workspace is within the 'Example' directory when it contains both the pod and example(if one is specified) projects. |
No time frame I'm afraid, CocoaPods is just something people work on in their spare time - if you'd to see the change, you're welcome to take a look at shipping a PR 👍 |
$ pod lib create
always creates a directory called Example and puts the workspace in it, even when asked not to create an example project.Even if functionally this makes sense (a library needs a workspace to be opened in Xcode and worked on), semantically in this case the name "Example" is a nonsense.
Creating a library without an example
What the directory tree looks like
CocoaPods Environment
Installation Source
Plugins
The text was updated successfully, but these errors were encountered: