Test program for real Machine debug cocos2d-x-3.16 on Mac

Source: Internet
Author: User

The article is relatively long, a novice is not a novice programmer's solution process.

Open Project in one Xcode

First, after the download completes cocos2d-x-3.16, unzip, and then double-click cocos2d_tests.xcodeproj in the root directory build directory to automatically open with Xcode.

After opening, we will see that there are actually many sub-projects. Let's compile one of the cpp-tests to iphone6s to do the real-machine debugging.

Two-true machine commissioning

1 Connect the phone, make sure the upper left corner of the phone is selected, as shown in.

2 Press the triangle symbol on the left to start compiling and running. The error is now prompted as follows. The error chart was not intercepted at the time, and the text hints as follows.

Requires a development team. Select a development team in the project editor.

Code signing is required to product type ' application ' in SDK ' IOS 11.1 '

Workaround:

1 Open your project at this point general pull to signing, can see like. The marked 1 is not the wrong choice. 5 is our compile error, because at this time 4 of the place to choose the None. Online A search all said in the team this place to choose a developer is OK, but the problem is, I this brand new Mac, click on Team, really nothing to choose. So, our problem is, add an account first. This picture of the 2-bit to remember Ah, the following will be used Oh oh oh

2 Add account. If you don't have a developer account, you can add your AppleID. In xcode-"perferences--selected the second accounts.

Of course, because I have just added to solving the problem, it is empty in the original. You need to click on 1 places to add, select the first Apple ID, fill in the ID and password, after success, the left will become me.

After the success, don't forget the following Red 2, click Download Certificate. in red 3 all management interfaces, with a certificate, are counted as successful.

3 back to just under the General->signing, Team dropdown, will be more than the account you just created, select.

4 You think it's all over, and I didn't expect another error to look at:

The app ID "Org.cocos2d-x.cpp-tests-ios" cannot is registered to your development team. Change your bundle identifier to a unique string to try again.

Point a lot of try, no, then Baidu said, said is my app ID was registered, I almost went to reapply app ID, fortunately No.

Workaround:

First, remove the automatically manage signing front hook,

Then, in the Xcode menu, select Clean under produce.

Then, above I mentioned that picture of the position of 2, modify the value of the bundle identifier, the original is Org.cocos2d-x.cpp-tests-ios, changed to org.cocos2d-x.cpp-tests-ios.1 you casually change on the line.

Then, hook the automatically manage signing.

Then, under Team, select the account you created before, and you won't get an error.

Then you click on the upper left corner of the run, you can normally compile through, installed on your phone.

Test program for real Machine debug cocos2d-x-3.16 on Mac

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.