Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Updates to Workflow Templates #100
Updates to Workflow Templates #100
Changes from 2 commits
b456e4b
067a285
0e42d35
733177f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this file? The pathname should be relative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the symlink for the original file that resides under
Tooling/Templates/Workflow (Verbose).xctemplate/Default/
. Even though I had created the symlink with the relative path, seems like symlinks cannot resolve relative paths and so symlinks have to have absolute path ALWAYS.It was created to overcome a limitation that we have with xcode files templates i.e files templates cannot be inherited from other templates (project templates can have ancestors though but not file templates) and therefore when creating a template that has RxSwift/ReactiveSwift worker enabled, both
___FILEBASENAME___Workflow.swift
and__FILEBASENAME___Worker.swift
has to be provided insidegenerateWorkerRxSwift
andgenerateWorkerReactiveSwift
. This leaves us in a situation where___FILEBASENAME___Workflow.swift
will have 3 identical copies and any changes to___FILEBASENAME___Workflow.swift
would require updates to all 3.Symlinks
was one solution since it allows you to create aliases for these files. But as you can see, symlinks don't work with relative paths unfortunately :(___FILEBASENAME___Workflow.swift
inDefault
and run copy commands as part ofinstall-xcode-templates.sh
script that copies it ingenerateWorkerRxSwift
andgenerateWorkerReactiveSwift
. Downside is without running the script, the template is pretty much broken. Ideally script should only be there to help you install templates.___FILEBASENAME___Workflow.swift
if we don’t anticipate changes to the templates often. I think it should ok for 1.0.0.What do you all think?
P.S: For workflow template to work correctly, the file/directory structure should look like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went ahead and added back copies of
___FILEBASENAME___Workflow.swift
for now