xcode-template

How do I add files to the Copy Bundle Resources build phase with an Xcode4 Project Template

↘锁芯ラ 提交于 2019-12-07 14:57:12
问题 I'm working on an Xcode 4 project template and I'm struggling with controlling the files that get added to the Copy Bundle Resources build phase--header files get added that I do not want to be copied into the project bundle and a file that I do want to be copied does not appear in this list (a custom .framework file that contains both the static library and image resources). It seems like Xcode automatically builds contents of this build phase from the Nodes section in the project template;

Xcode 4 template, create empty group

旧城冷巷雨未停 提交于 2019-12-07 07:13:27
问题 I'm trying to create a xcode 4 template. Everything works fine except for the fact that I can't create an empty group. I would like to have this project structure: ProjectName -Models -Controllers -Views -Services <key>Definitions</key> <dict> <key>Views/RootViewController.h</key> <dict> <key>Group</key> <string>Controllers</string> <key>Path</key> <string>RootViewController.h</string> <key>TargetIndices</key> <array/> </dict> <key>Views/RootViewController.m</key> <dict> <key>Group</key>

Xcode - change project templates

半世苍凉 提交于 2019-12-06 06:41:42
So I can add new templates for single files, but I want Xcode to uses these files when setting up the new project (most noticeably the Controller and Delegate .h and .m files). How do I do that? In addition to the templates for individual classes that you found, there are also templates for the various project types. If you just want to replace a single class file that is already being added in the projects you can just replace the file in each of the project template files (as long as the names are the same). You will need to copy the template files into each project template that you want to

why there is no “Use Core Data” check box with Tabbed Application template

99封情书 提交于 2019-12-06 02:59:41
问题 I need a tabbed application with core data persistence. when i create a new project with Tabbed Application template, i can not find the "Use Core Data" check box. Is it okey to manually add a core data to a project created with Tabbed Application template? 回答1: It's not there because there is no standard way to implement core data view controllers in an tabbed application like there is in a table based app. Yes it is okay to add Core Data to every project you create. You can use a core-data

Xcode, deleted .pch file by mistake, can it be recovered?

微笑、不失礼 提交于 2019-12-06 02:52:13
As i understand it, .pch files are responsible for precompiling header files. Sounds like something that can rebuilt or recreated. 2 questions: Does Xcode have something similar to recycle bin from there file deletions can be undone? Is there a direct way to rebuild .pch file? The .pch file is generally very simple, and its contents depends upon the project type. The basic idea is that it includes the heavyweight header files. Xcode itself doesn't modify this file beyond the basic template; it'd only be different from the template if you changed it yourself. For a Cocoa application, it is: //

why there is no “Use Core Data” check box with Tabbed Application template

荒凉一梦 提交于 2019-12-04 07:09:16
I need a tabbed application with core data persistence. when i create a new project with Tabbed Application template, i can not find the "Use Core Data" check box. Is it okey to manually add a core data to a project created with Tabbed Application template? It's not there because there is no standard way to implement core data view controllers in an tabbed application like there is in a table based app. Yes it is okay to add Core Data to every project you create. You can use a core-data enabled template for reference. Yes, you can add it yourself. Or you can the empty template and add the tab

How to Change Default Copyright Template

╄→尐↘猪︶ㄣ 提交于 2019-12-03 11:33:40
Whenever I make a new file in xcode, it puts something like this at the top of the file: // Copyright __MyCompanyName__ 2008. All rights reserved. How can I change that to something useful? Update: found the answer here . As of Xcode 3, it will use the "company" field from your Address Book card. Follow these steps to change the copyright: Note: The change is for new files that you create, so you will need to update the ones that had been previously created manually. As of Xcode 6.1.1 this can be changed by clicking on the main .xcodeproj file in the project view (the blue one). The right

Creating groups using a custom template xcode 8

给你一囗甜甜゛ 提交于 2019-12-03 09:47:55
问题 I have successfully created an Xcode 8 template that will respond to these actions: You already have a working project You want to add your custom swift file to this project Step by step, how to achieve that: I have created under: /Users/*YOUR_USER_NAME*/Library/Developer/Xcode/Templates/File Templates The folder name Custom/Interactor.xctemplate Files inside that folder: ___FILEBASENAME___Interactor TemplateInfo.plist TemplateIcon.png TemplateIcon@2x.png So when I right click and create new

xcode basic game template

南楼画角 提交于 2019-12-03 03:54:37
I am wondering if anyone knows of a open source or paid Xcode template. It would be for a basic game, ( NOT COCOS2d ) . It would include simple items like profile management, load/save, Menu, Settings, ( perhaps include Openfeint/Game Center ) Something to use as a base for creating new games, things that get used over and over. I am thinking about creating either a simple match three game, or maybe a card game. Before I sat down and created one myself, I thought I would check to see if something was available. ( No need to recreate the wheel right? ) Thanks everyone! This isn't quite the

How to edit an default Xcode template?

一曲冷凌霜 提交于 2019-12-02 00:35:12
When I create an NSObject subclass, I always get an empty implementation. There are some things I always put in my code like pragma marks and -dealloc methods. I prefer to just delete stuff that I don't need over writing it with typos from scratch every time I need it. I need -dealloc and -init almost always, but they don't ship with the default template. Is there a way to customize what's in there? Take a look at this article that describes how to create user defined templates in xcode. I've also created a description on how to do this, this tutorial was based on Xcode 3.2.2 and 3.2.3 (beta