Xcode 8.3: how to install multiple custom "Project Templates" in Xcode 8.3? -


i trying install 2 custom "project templates" in xcode 8.3.3. more specific, i'm trying install cocos2d-obj templates v2.1 , v2.2. (cocos2d v3 or higher no longer use xcode templates, v2.x does.)

during installation, each cocos2d v2.1 , v2.2 creates own xcode template folders , folders copied xcode's custom template folder:

~user/library/developer/xcode/templates/cocos2d v2.2 ~user/library/developer/xcode/templates/cocos2d v2.1

i hoping see there 2 separated templates (cocos2d v2.2 , cocos2d v2.1) available in template menu when new xcode project being created. 1 (either v2.2 or v2.1) appears in template menu. (interesting thing last modified 1 appears.)

basically seems xcode doesn't allow have more 1 custom template in menu. (however, "file template" menu shows both v2.2 , v2.1 "file template" correctly in xcode, project template doesn't.)

as far know related xcode's custom template related behavior, cannot find official document regarding custom template apple's document depository.

so question is, how can have 2 custom project templates (v2.1 & v2.2) appear in template menu when new project being created?

any answers or helpful comments appreciated. in advance.

finally have figured out how goes. when comes "project template", xcode looks tracing "identifier string" in plist files of each templates. , when there more 1 template files exist under same "identifier string", chooses 1 template randomly(?) among them , shows in template menu when new project being created. after manually modifying identifier strings templates (in v2.1) not have same ones against templates in other package (v2.2), xcode brings them in template menu correctly. manually modified cocos2d-v2.1 templates not have same identifier strings against v2.2. also, worth noted templates have "ancestors" in fields such ancestors needed updated accordingly when entire template package modified reason. wish see official documents apple regarding how handle xcode's templates, (for latest version of xcode).


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -