Cocos2d-x Project (Windows) package iOS before you run the basic process of debugging

Source: Internet
Author: User

1. Under Mac System: Locate the project file, locate under Proj.ios folder: Project name. xcodeproj Double-click to open.

2. After entering the Xcode development environment, you will find that there are only 4 basic files under the Class folder, the game class in the project?

Do not worry at this time, select the class right-click Show in Finde

Own new class found, small excitement there is not? The next thing to do is to do something very important, that is, after you select the newly created class, drag to the Xcode open Project classes:

The default in the 3.Resourse folder is:

In the same way as in 2, drag the resources used in the project to this resource.

4. When this class and resources are available, click Debug in Xcode: If your project does not refer to other library files, and some libraries you define yourself. Then it is possible to run it. Here are some errors in your own game class:

A. Refer to the. h header file, if useful to "\", instead "/" (Hint: *.h not find error)

B. The applied data type, if not supported, is replaced with an equivalent data type.

C. What else is there? Remember, next time you bump up.

5. If you have references to some libraries and some library files of your own definition, you will find Serch Paths in the project: Build settings:

Add your own defined library file path in header Search paths:

Library Search paths add some standard library paths for your app:

6. At the same time, find linked Framesworks and Libraries in general

Add a local standard library, such as: I am in the project of the Iconv and sqlite3 in the library of some things, then click on the + Sign pop-up dialog box to find the corresponding library, the individual feel related to add in (just in case);

7. Next, you can debug the program. Of course, there will be a variety of red exclamation points during debugging (how complex your project is, how many red exclamation marks there are!)

Be patient and follow the prompts to modify it.

Cocos2d-x Project (Windows) package iOS before you run the basic process of debugging

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.