How to add an empty project template in Xcode6

Source: Internet
Author: User

Come on, guys! is not still in Xcode to create empty project templates distress, it dapeng for everyone to prepare a script, you can directly create an empty project in the Xcode6, the same as before!

The contents of the document are as follows:

The first step is to determine what the absolute path is in the application after you install Xcode6 . (You can use the terminal to access Xcode and the PWD will have the absolute path of Xcode)

If you have two Xcode installed on your PC, to find the absolute path to the XCODE6 installation, make sure that the absolute path of the xcode6 you are looking for is the right one.

/applications/xcode.app
/applications/xcode 2.app


For example, the absolute path to Xcode is /applications/xcode.app , next open the addmissingtemplates.sh file, change the path in the blue box below to /applications/xcode.app, If it is the same as the path in the blue box, then there is no need to modify it.

Step Two
Open the terminal and use the command CD to enter the directory Addmissingtemplates-master (to find your storepath of the Addmissingtemplates-master), and then run the script inside addmissingtemplates.sh OK. How to run the script is the same as running the binary program./addmissingtemplates.sh.
The third step is to exit Xcode and reopen it to see the cute empty project template. Also added are templates for creating categories, protocols, anonymous categories.

Probably a lot of friends operation for half a day and no operation is correct, the final copy failed to find the file. If the above does not work, then the manual copy directly. What do you mean? My script actually performs a copy operation, and copies the empty project template folder to a specified directory in Xcode. Take the above Xcode for example, then manually enterfolderAddmissingtemplates-master, and then putEmpty application.xctemplate Copy To/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/library/xcode/templates/ Project Templates/ios/application is ready, but make sure your Xcode path is correct. Get out of Xcode and open it again.

How to add an empty project template in Xcode6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.