The articles on this site are originally written by Li huaming himi. The reprinted documents must be clearly indicated:
Reproduced from [Black Rice gamedev block] original link: http://www.himigame.com/iphone-cocos2dx/1020.html
1. Many projects use xcode with version greater than or equal to 4.5. Many third-party libraries, such as swaves SDK, AdMob SDK, and 91 SDK mobage SDK, cannot be found.
1. The simplest solution is to wait for these third-party libraries to update the new SDK that supports ios6 armv7s as soon as possible.
2. Try the following two methods to solve the problem that cannot be compiled:
2.1:
Select a project, select the targets project, find the build settings page, search for: Build active architecture only, and set it to yes to compile the project through armv7s.
2.2 .:
Select a project, select the targets project, find the build settings page, and search for: VALIDUbuntures
Delete armv7s.
The first solution is recommended.
It should be noted that, although some of the above methods can be compiled by a third party of armv7s of ios6, they still cannot be compiled to the iPhone 5 real machine, in this case, we can only wait for a third party to update the new version of armv7s.
2. For more information about why ios6 cannot be used as a horizontal screen in the previous engine version, see the previous blog.
3. Add a 4.5*1136 default image to xcode with version> = 640. If the image is a landscape screen, add a 640*1136 image, uniform use of the image name "Default-568@2x.png" this image naming method is only applicable to start the logo image.
If you do not add a default image of the latest size, the system prompts the following warning:
Double-click this warning and the system will prompt the following:
The success prompt is to wake up when xcodeautomatically generates a default-568h@2x.png. The default size is 640*1136.
4. If you use ccdirector: shareddirector ()-> getwinsize (); to determine whether it is iphone5 based on its width, pay attention to it (horizontal screen distance ):
Do not judge if (size. width = 1136) {/* Is iphone5 */} (this is wrong) of the current screen size)
The size of the iPhone is only 480*320. Now the size of the iPhone 5 is 568*320 !!!
Therefore, the correct information should be:
If (size. width = 568) {/* Is iphone5 */}