Closed fulldecent closed 8 years ago
Here is my complete recipe for template 1. Now somebody can recreate what I am doing -- and it should be a repeatable process.
Long term for pod-template, I think we can make a recipe for each template. Then we can store each template in Git. Then we replace the whole configurator with a VERY simple tool. All it does is ask you which template you want and it does variable substitution. I believe that is as simple as possible and no simpler.
Some variables have spaces in them. That is intentional because it causes Xcode to use double quotes around them in its project configuration files.
__PROJECT_NAME__
__ORGANIZATION NAME__
com.AN.ORGANIZATION.IDENTIFIER
__AUTHOR NAME__
__TODAYS_DATE__
__TODAYS_YEAR__
__GITHUB_USERNAME__
Do all these instructions on the same calendar day (because today's date is saved into the files).
__PROJECT_NAME__
__ORGANIZATION NAME__
com.AN.ORGANIZATION.IDENTIFIER
__PROJECT_NAME__
scheme shared (NEED MORE SPECIFIC DOCUMENTATION FOR THIS STEP)__PROJECT_NAME__
__PROJECT_NAME__
to “Source"__PROJECT_NAME__Tests
to “Tests"__PROJECT_NAME__
.xcodeproj in Xcode__PROJECT_NAME__
folder__PROJECT_NAME__
/source__PROJECT_NAME__Tests
folder__PROJECT_NAME__
/tests__PROJECT_NAME__
project (the blue Xcode icon, not the folder icon)__PROJECT_NAME__
__PROJECT_NAME__
__ORGANIZATION NAME__
com.AN.ORGANIZATION.IDENTIFIER
__PROJECT_NAME__
on the desktop__PROJECT_NAME__
project (the blue Xcode icon, not the folder icon)__PROJECT_NAME__
__PROJECT_NAME__
instead of "${POD_NAME}” or PROJECT__GITHUB_USERNAME__
instead of "__PROJECT_NAME__
/__PROJECT_NAME__
.podspec__PROJECT_NAME__
/__PROJECT_NAME__
.podspec.txt __PROJECT_NAME__
.podspec__PROJECT_NAME__
instead of "${POD_NAME}”__PROJECT_NAME__
/Example/Podfile__PROJECT_NAME__
/Example/__AUTHOR NAME__
(see the line Created by XXX on YYY.)__TODAYS_DATE__
(see the line Created by XXX on YYY.)__TODAYS_YEAR__
(see the line Copyright © XXX ORGANIZATION NAME)To use this template, simply do a find-all and replace for each of the variables.
This is done. I posted the recipe here https://github.com/fulldecent/swift3-module-template
Cool 👍
Pod-template supports 15 templates:
We should create a complete step-by-step recipe that my mom could use to create template 1. The ONLY difference between my mom following the recipe and running
pod lib create
would be the substitution of variables.Having such a recipe would make it MUCH simpler to update
pod-template
with each new update of XCode or Swift or CocoaPods. Having this "build script" would be a repeatable process for updatingpod-template
.