-
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
New project layout, Carthage, SPM [WIP] #187
Conversation
It may seem like this changes more lines than it needs to, but this is everything that Xcode 7.1.1 changed when I checked the coverage box, and it appears that none of it can be left out for the box to stay checked.
@orta I have added a blocker for CocoaPods/CocoaPods#5787 in the notes above. CocoaPods 2.1.0 doesn't even have a milestone yet. Do you have a specific issue we can reference as a blocker? |
This is the issue, see the discussion above with ben + I, #187 (comment) ( It's for CP 1.1.0, which is currently in beta ) |
Thank you, blocker added |
FYI, this PR is usable for production code today -- assuming you use Swift and testing. I have updated notes above for same. |
Most people that are making new pods will probably want to use https://github.com/fulldecent/swift3-module-template Long term, I would like to replace CocoaPods/pod-template with what is at swift3-module-template and cover all the other use cases that CocoaPods/pod-template does. |
1.1.0 is now out, and we're good to start thinking about getting this in |
I've my plan is to make a CP Mac release at the weekend, and get this out, do you want to consider writing a blog post for this? I'd love to get your name out about the changes |
Update to CocoaPods Pod Templateby William Entriken, posted 2016-10-21 The newest CocoaPods release 1.1.1 is now compatible with the updated Pod Template and it brings new features to all pod authors! Pod Template ( All the best practices for pod authors are already built in. But the 1.1.1 release bring many new features. To recount, here is everything:
As new versions of Xcode are released and as Swift evolves, Pod Template must be updated to take advantage of new features. You will get all the latest updates every time you run |
@orta Thank you! Here is a blog post. |
Yep, looks like that PNG gets corrupted, probably is getting find and replaced on it's internals. Looks like all this swift stuff needs updating for Xcode 8, sigh |
…Pods to framework with no example app.
Hrm, png still corrupting but at least project removal seems to work fine now and Swift seems to work fine on v3 |
Looks like the Xcode project for Objective-C libraries doesn't open, and is somehow correupted.
|
https://github.com/fulldecent/swift3-module-template is now compatible with CocoaPods. It can be run directly with
For new Swift 3 projects, this is superior. It is very clean, has no dependencies and is reproducibly documented. Please help review. If there is interest, I will make a PR here. |
Just a reminder for anyone interested in this PR, this is still blocked from a merge on Objective-C support, and work on the guides to reflect new changes. |
@fulldecent Is this up to date with your repository? I'll look at the merge conflict with the ObjC branch since I worked on it last. |
On the left is the result of:
for Objective-C, Demo=Yes,Test=Quick,ViewBased=No Right is the same but with swift. Few things I noticed:
|
@jugutier This PR is live and still valid. If we can get it working with ObjC then we should probably merge it because the new configuration engine is nice. This PR still suffers from the main problem of The swift3-module-template has a dead-simple configurator, no external dependencies and a recipe. This means generating the template is repeatable. That solves the problem of updating for each Xcode release. I have just now created https://github.com/fulldecent/objective-c-module-template as a starting point to do the same thing for Objective-C projects. If someone can help with this new part then we will have a complete replacement for pod-template. |
@fulldecent I am already doing it here: https://github.com/jugutier/pod-template/tree/develop my plan is to rebase master from this branch to get the latest that happened there (mostly my changes for the obj-c template) but for that I'd like to understand points 2, 3 and 4 above. Could you see if you have some input? Thanks! |
Hello all, I have been working on this PR for almost a year. Thank you for your patience, it's worth the wait! After lots of testing, dogfooding and feedback, please see #210 I put all my heart into that PR and it supersedes this #187 so I'm closing this one. Specifically, the new one now supports Swift AND Objective-C. It was such a simple fix... just make a mixed project. But now it works and so it is a realistic contender to replace the old PR. Would you please bring your comments from this thread and consider your same issues on the new PR. As always, I'm very eager for your feedback. |
Status
If you are using Swift 3 and working on a NEW project, check out https://github.com/fulldecent/swift3-module-template it is better than pod-template.
You can use this NOW for production code if your your project is Swift and has tests. See "How can I play..." below.
PR merge blockers:
How can I play with this PR?
cd
into the directorygem install bundler
bundle install
rake
cd ~/Desktop
pod lib create --verbose --template-url='file:///PATH/TO/pod-template' NewPod
pod
to run this templaterake
testing orpod lib create
testing. Both of those tools pull from master in your local repository. Learn how to squash commits :-)PR Improvements to Master
Wording:
pod-template progress:
baseline template progress: (new feature)
swift template progress:
objective-c template progress: