Ios Mobile Game Development: IOS Development Environment Construction

Source: Internet
Author: User
IOS development environment from: http://blog.csdn.net/xsxxxsxx/article/details/8113978

First of all, I would like to mention why the development environment of each platform should be set up as a cross-platform solution. The Phonegap + HTML5 solution is not a package that can be run on any platform without compilation, but a solution that can integrate Javascript with native, therefore, the software package based on it is still a package with features of various platforms, but most of the business logic is developed based on Javascript, but it does not represent all, therefore, it is necessary to compile, debug, and finally package and deploy the software in the development environment of each platform. Although phonegap also has a build platform: https://build.phonegap.com/, this is definitely not enough. It took a lot of time for me to build a development environment for each platform for Java only.

The IOS development environment is the most engaging. However, if you have a Mac and an IOS developer account, you can skip this article, here I will talk about how to build a development environment based on a company that neither has a Mac nor a developer account. Apple is a company that has closed down technologies and products. Developing IOS not only has strict requirements on hardware and software, the version is also very restrictive, which makes us unaccustomed to taking the open-source technology path. But there is no way, you can only passively be led by Apple, there are not many other options.

The purpose of this article is to develop and package IOS applications based on Phonegap in a development environment (at no cost.

Specifically, there are four tasks:

  • Mac Environment Construction
  • Deploy and Debug on an iphone/ipad
  • Debug Phonegap source code
  • Debug Javascript

1) Build a Mac Environment

I have recorded the entire setup process in "building an IOS development environment (mac 10.6.8 + xcode 4.2) on AMD WIN7. After a few weeks of trial, it can basically meet the needs of development work. However, if you need a smooth experience, first, you need to install the memory, and the other is better to use the SSD, however, these two items are not expensive at present, and 1000 yuan is enough.

2) Deploy and Debug on the iphone/ipad

If you only need to look at the effect on the simulator, you do not need to consider this step. The IOS developer account of Apple is $99 per year. Apart from being able to access various document resources, the most important thing is that developers need to use it to generate valid certificates, and deploy the application to the App store and the real machine. Of course, if the product has been developed and is planned to be put into the market, the money will definitely be spent, but for those who are still outside the water, there is no need to be stuck by Apple so quickly. All I need is to be able to deploy and debug applications directly on the real machine from xcode.

The first is to crack xcode. Many articles have written detailed steps in this step. I have also followed these steps. This article is more reliable.

Then I want to jailbreak the iphone/ipad, so I don't have to worry about it anymore. I believe all my friends with the iphone/ipad have studied how to jailbreak. However, I have not found out whether I have to jailbreak to debug or deploy ipa, but I have tried not to do it on an iphone without jailbreak, however, you only need to deploy ipa to the real machine.

Finally, xcode identifies the real machine and directly commissions the application on the real machine. I have been stuck in this step for a long time. I have been unable to recognize the ipad on the Mac of the virtual machine, but I can see the ipad on the hardware device table. At first, I began to suspect that it was a problem with the virtual machine, however, it is okay for the VM to identify the USB hard disk. The reason for this is that the itune version is too low and is successfully upgraded to the latest version. (Here you can also feel Apple's wrist and use various means to make sure you have to update all related products ). After successful identification, you can see the connected device in run or windows/Organizer, which is the same as debugging in the simulator.

3) debug the Phonegap source code.

It is necessary to debug the Phonegap source code. First, you can learn the entire circulation mechanism, and second, you can debug your own plug-ins or install plug-ins.

First, build the project structure according to the official guide: Getting Started with iOS. Then:

  1. Delete "Cordova. framework"
  2. Drag CordovaLib. xcodeproj from the phonegap source package to xcode. For the drag and drop location, see:
  3. Select "Build Phases" for the main project (starteam-mobile-ios) and add "libCordova. a" under "Workspace" under "Link Binary With Libraries ",
  4. Add "CordovaLib" in "Target Dependencies ",
  5. Edit "Other Linker Flags" in "Build Settings" and add "-all_load-Obj-C" configuration item
  6. Drag the "VERSION" file in the Phonegap source code package to the "Supporting Files" folder:
  7. The ubuntures under the main project and CordovaLib. xcodeproj is changed to: Standard (armv7). Otherwise, gcc-related errors will be reported during compilation,
  8. Compile the entire project. If it succeeds, you can debug the phonegap source code.

Phonegap source code has not been available yet, mainly because it is not familiar with objective-c, but found a video resource that is very good at IOS development: iOSSDK basic tutorial, although it is full of English, however, when using thunder to see subtitles matching many chapters online, it is not a problem to use English in combination with a good video demonstration.

4) debug Javascript

It is very difficult to debug a Javascript error on a real machine. This requires a series of tools. I am going to take it and javascript debugging on other mobile platforms as a separate topic for detailed research, I will not talk about it here.

At this point, the development environment of Phonegap on IOS is complete. Although it is zero cost, it takes a lot of time. Do you have to consider it yourself? If you are interested, try it, but for those who have made up their minds to engage in IOS, please buy a Mac. (I am also trying to apply for a budget from my wife, let yourself step into the door of IOS more firmly


For example, public investment funds have changed everything in mobile game development from: Success. Cocos2d-x mobile game development: Cross iOS, Android and wophone platform for all want to enter the smart Phone platform game field of people, including college students, game developers, and ctos of online game companies.
From: http://download.csdn.net/detail/cai3322656/4940397

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.