Setting up iOS-cocos2d-X Environment

Source: Internet
Author: User

I tried to use my Mac to check whether cocos2dx had no environment and set up a new one. I thought it would be very easy, but it would not work because I didn't summarize it before. I am not so worried about the time today. Here we will summarize it.

Convenience later

Here I will post some reprinted Materials

Command for displaying Mac hidden files: Defaults write com. Apple. Finder appleshowallfiles-bool true

Command for hiding Mac hidden files: Defaults write com. Apple. Finder appleshowallfiles-bool false

When the resource manager kills the finder, you can see the library, that is, the resource library.

Enter and press Enter. Then we close the terminal. Click the "apple" icon in your Mac desktop menu, select "Force exit", select "Finder", and click "restart". OK. You can see all the hidden files. Here, I will release the path for deleting the cocos2d/cocos2dx template in my computer xcode:

/Users/himi/library/developer/xcode/templates

The corresponding folder path is as follows:

Macintosh HD-> User-> himi (your user name)-> resource library (hidden)-> developer-> xcode-> templates

OK, directly Delete the templates (template in xcode) IN THE cocos2d-x or cocos2d folder can be!

First, download the latest version of cocos2d-x. himidownload is cocos2d-1.0.1-9.9.2.zip. This version is compatible with ios5, so we may see that this article is not the latest version of 1.0.1, so here himi give download list address for everyone to select the desired version, http://code.google.com/p/cocos2d-x/downloads/list

Step 1: Download the engine package for the cocos2d-X, which has been given the address above;

Step 2: After the download is complete, himi places it in the document. (click "Finder" and click "document" on the left ");

Step 3: Start the terminal. (Click Finder-go-utility-Terminal)

Step 4: first use the command to enter the current "CD documents" to enter the Documents folder, continue to enter the folder command: "CD cocos2d-1.0.1-x-0.9.2", and then "sudo. /install-templates-xcode.sh command to start to execute the installation command to execute OK

By the way to build an android environment reference this link: http://xiaominghimi.blog.51cto.com/2614927/802322

Reference connection: http://www.himigame.com/iphone-cocos2dx/599.html

Related Article

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.