specific assistance xcode digest template doing transformation record contents


we perplexing digest template, nonetheless support disproportionate non-existent.



doing reverse-engineering template files, have adult following. however, doen't indeed work!



first all, have figured out digest templates should hallowed inside:



~/library/application support/developer/shared/xcode/project templates



we have finished digest hallowed here, biased works - arrangement adult "user templates" domain xcode "new project" chooser.



the digest folder contains following files. see, i wish record names subsituted (that biased works) nonetheless see, i also wish essence files substituted; doesn't happen.




  • ___projectname___.xcodeproj

  • ___projectnameasidentifier____prefix.pch

  • ___projectnameasidentifier___.icns

  • ___projectnameasidentifier___delegate.h

  • ___projectnameasidentifier___delegate.m

  • ___projectnameasidentifier___template.html

  • debug.xcconfig

  • en.lproj

  • info.plist

  • release.xcconfig



i have put twin special files ___projectname___.xcodeproj package:




  • templateinfo.plist

  • templateicon.icns - idol arrangement adult new digest window



if i emanate new digest (called "foo & bar" highlight test) controlling template, files creates:




  • debug.xcconfig

  • en.lproj

  • foo & bar.xcodeproj

  • foo___bar_prefix.pch

  • foo___bar.icns

  • foo___bardelegate.h

  • foo___bardelegate.m

  • foo___bartemplate.html

  • info.plist

  • release.xcconfig



so distant good!



but looking record contents, i things this. here essence foo___bardelegate.m:



//
// «projectnameasidentifierdelegate.m
// «projectname
//
// combined «fullusername «date.
// copyright «organizationname «year . rights reserved.
//

#import "«projectnameasidentifierdelegate.h"


@implementation «projectnameasidentifierdelegate

@end


the apparent emanate somehow i'm doing templateinfo.plist wrong. nonetheless following again, notice wholly special equipment being substitued, nonetheless customary equipment don't even replaced! maybe it's deeper issue.



but mysterious templateinfo.plist being best hypothesis, i donation integrate variations i have tried. conjunction work.



either:



{
filestomacroexpand = (
"\_\_\_projectnameasidentifier\_\_\_\_prefix.pch",
"en.lproj/infoplist.strings",
"\_\_\_projectnameasidentifier\_\_\_\_prefix.pch",
"\_\_\_projectnameasidentifier\_\_\_.icns",
"\_\_\_projectnameasidentifier\_\_\_delegate.h",
"\_\_\_projectnameasidentifier\_\_\_delegate.m",
"\_\_\_projectnameasidentifier\_\_\_template.html",
"info.plist"
);
outline = "this digest builds cocoa-based \"element\" plugin sandvox.";
}


or:



{
filestomacroexpand = (
"«projectnameasidentifier\_prefix.pch",
"en.lproj/infoplist.strings",
"«projectnameasidentifier\_prefix.pch",
"«projectnameasidentifier.icns",
"«projectnameasidentifierdelegate.h",
"«projectnameasidentifierdelegate.m",
"«projectnameasidentifiertemplate.html",
"info.plist"
);
outline = "this digest builds cocoa-based \"element\" plugin sandvox.";
}


update: i've also attempted adding "filestorename" key, even nonetheless ___ seems automatically causing renaming happen. plist essence in, xml format (since nervous utf-8 inlet things -- yes, it's current plist):



<?xml version="1.0" encoding="utf-8"?>
<!doctype plist open "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd">
<plist version="1.0">
<dict>
<key>description</key>
<string>this digest builds cocoa-based "element" plugin sandvox.</string>
<key>filestomacroexpand</key>
<array>
<string>«projectnameasidentifier_prefix.pch</string>
<string>en.lproj/infoplist.strings</string>
<string>«projectnameasidentifier.icns</string>
<string>«projectnameasidentifierdelegate.h</string>
<string>«projectnameasidentifierdelegate.m</string>
<string>«projectnameasidentifiertemplate.html</string>
<string>info.plist</string>
</array>
<key>filestorename</key>
<dict>
<key>___projectnameasidentifier___.icns</key>
<string>«projectnameasidentifier.icns</string>
<key>___projectnameasidentifier___delegate.h</key>
<string>«projectnameasidentifierdelegate.h</string>
<key>___projectnameasidentifier___delegate.m</key>
<string>«projectnameasidentifierdelegate.m</string>
<key>___projectnameasidentifier___template.html</key>
<string>«projectnameasidentifiertemplate.html</string>
<key>___projectnameasidentifier____prefix.pch</key>
<string>«projectnameasidentifier_prefix.pch</string>
<key>___projectname___.xcodeproj</key>
<string>«projectname.xcodeproj</string>
</dict>
</dict>
</plist>


Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members