Skip to content
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

Update templates to work with Xcode 6.3 #325

Merged
merged 1 commit into from
May 5, 2015

Conversation

tjarratt
Copy link
Contributor

Untested with earlier versions of xcode.

Apparently in Xcode 6.3 the TemplateInfo.plist has a version of the macros that
xcode provides (e.g.:: ___FILENAMEBASE___) that are different from the contents of
the template. The template contents use the actual file name, rather than what the
user provides.

This fix just captures the class the user typed as a variable, and then uses it
in the template. I believe this should work on earlier versions of Xcode, but
I haven't had the liberty to check yet.

Fixes #324

Untested with earlier versions of xcode.

Apparently in Xcode 6.3 the TemplateInfo.plist has a version of the macros that
xcode provides (e.g.:: ___FILENAMEBASE___) that are different from the contents of
the template. The template contents use the *actual* file name, rather than what the
user provides.

This fix just captures the class the user typed as a variable, and then uses it
in the template. I believe this should work on earlier versions of Xcode, but
I haven't had the liberty to check yet.

Fixes cedarbdd#324
@tjarratt
Copy link
Contributor Author

Huge shoutouts to @akitchen for motivating me to do this, and for my son for staying asleep for the time it took me to figure out how the crazy variable syntax for Xcode templates works (yet again).

@thunderweasel
Copy link

Thanks @tjarratt! This issue's been annoying the hell out of me. I just tried it out on Xcode 6.2 and it doesn't seem to break anything.

@tjarratt
Copy link
Contributor Author

tjarratt commented May 4, 2015

Aww damn. Thanks!

On Monday, May 4, 2015, pivotal-ryan-mcleod notifications@github.com
wrote:

Thanks @tjarratt https://github.com/tjarratt! This issue's been
annoying the hell out of me. I just tried it out on Xcode 6.2 and it
doesn't seem to break anything.


Reply to this email directly or view it on GitHub
#325 (comment).

Magnetized From My Etch-A-Sketch

akitchen added a commit that referenced this pull request May 5, 2015
Update templates to work with Xcode 6.3
@akitchen akitchen merged commit 4566f29 into cedarbdd:master May 5, 2015
@akitchen
Copy link
Contributor

akitchen commented May 5, 2015

Thanks @tjarratt @pivotal-ryan-mcleod !

@tjarratt tjarratt deleted the fix-templates-for-xcode-6.3 branch May 7, 2015 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cedar templates adding extra "Spec" to the name of the class (Xcode 6.3)
3 participants