The current test environment is:
1,vmware Workstation 9.0.2
2, Windows 7 (a bit)
3, (installed via VMware) Mac OS X 10.8 (+xcode) 4.5
Note : The Xcode 4.5 built-in iphone 6.0 SDK support. Also, Mac OS X 10.8 has built-in Python, just a little bit lower. In fact, there is no need to install the Cocos2d-x version template for Xcode, so it is not required at this time.
The following records work and issues ( until you successfully resolve every problem in the sample game.) Therefore, this article will be constantly updated ... )。
Question 1
1. After setting up the Mac and Windows 7 shared folder mode, double-click the folder corresponding to the original Win32 version (I'm using Cocostudio 1.4.0.1) thumbelinacell\projects\thumbelinacell\ Proj.ios under the Xcode project file Thumbelinacell.xcodeproj, it's easy to open the thumb solitaire project (instead of installing the Cocos2d-x template as in earlier versions). This is similar to Win32 under the opening of the project, is similarly double-click the Proj.win32 folder under the VC project file thumbelinacell.vcxproj.
Experience: On the whole, more and more convenient, thanks to the Cocos2d-x development team!
2. Compile with the default compiler, initial failure. Reason first not to analyze! I replaced the default compiler, Apple LLVM Compiler 4.1, with another newer version LLVM GCC 4.2 (Xcode 4.5 built-in). It turns out that the changes were successful!
3. Continue to compile and fail. Now, the main stay in the. h file reference format (itself is not a problem, as long as the meticulous operation.) and. These two special directory symbols are OK). Overall, VS's C + + compiler is too rough compared to LLVM GCC 4.2, but the VS integrated development environment (with visual_assist_x_10.7) is much more efficient than Xcode, both for building C + + projects. This is not to say that some shortcuts are not used to the problem, you can try to know.
4. Since an encrypted version of the SQLite 3.0 version was provided in the original project, it was found at compile time that the C inline Assembler section was not able to pass the run-time check (the assembly also failed at the beginning, the format was modified by referencing the data on the network, and the surface was compiled by compiling; But at runtime it stops executing at the end of this part of the code at the same time. Therefore, at present, the first removal of the encrypted version of several files related.
5, in addition, may also be the cause of carelessness, suddenly appearing in the Classes folder is two AppDelegate.cpp and the corresponding. h file. Switch to Win7 see, there is still only two files. For this reason, the run-time error is roughly prompted by "duplicate symbols for ...". Then carefully back it up and then delete it under Xcode (only the Delete reference button is selected). Re-compile and run, ok!
6, success is "success", but there is an inexplicable interface, as shown in:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/49/B6/wKioL1QZUfHRPFxvAACc_jh6mAo487.jpg "title=" Capture 1. JPG "alt=" Wkiol1qzufhrpfxvaacc_jh6mao487.jpg "/>
How is not my game in the SplashScreen scene interface?! One more glance at the Debug console section, you find the following error message (So, Xcode brings up a temporary?). This is not possible in VS!! ):
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/49/B4/wKiom1QZUqyyny8cAAFzdqoS1LM248.jpg "title=" Capture 2. JPG "alt=" Wkiom1qzuqyyny8caafzdqos1lm248.jpg "/>
It feels a little strange! Previously, I have successfully used the animation editor to find the game on my I9100 phone! Another important clue, the above error is very similar to the error in my home (Android version at the same time on the machine at home) Logcat!!!
Problem 2--solve the problem that SplashScreen does not appear
Note: Xcode 4.5 automatically sets a flat screen display of the template iphone 6 interface!
To be continued ......
This article is from the "Green Peak" blog, please make sure to keep this source http://zhuxianzhong.blog.51cto.com/157061/1554415
Thumb Solitaire game from WIN32 to Xcode 4.5 migration process issue record