iOS app tutorial not released via AppStore

Source: Internet
Author: User

Premise:

To achieve this, you must first have a business account (annual fee is $299), and you have configured the appropriate certificate and provisioning profile.

Second, to have a git.oschina.net account, for the storage of related files.

Finally, you install a Web server such as Apache.

Detailed Tutorials:

Part I: Xcode app Packaging

First, open the Xcode project you want to publish. Select the product->archive of the toolbar, at which time Xcode will package the application.

If the archive is gray, select the operating platform as an iOS device.

After packaging is complete, the Archives dialog box pops up. This shows the project that was just packaged, so click on the Distribute button on the right.

Click on the Distribute button and you will be prompted to select the Publish method. This selects the middle of the save for Enterprise or Ad Hoc Deployment.

Next will be prompted to select the appropriate provisioning profile, must be a corporate account and properly configured to have the corresponding release provisioning profiles. Select Finish and click Export.

It then goes to the file storage path selection, where we select the desktop. Then tick the below save for enterprise distribution, which will bring up the relevant settings for the enterprise release. There are only two items required: application URL and title, the former is applied, and the latter is the name of the application. Since we haven't deployed the program yet. So here you can first fill in a similar address, title on the application of the name. The rest can be left blank.

Click Save, you will find two more files on your desktop, one is. IPA file, one is. plist, with these two files, you can deploy an online installation application.

If your iOS device is jailbroken, this IPA can be installed through the XX Assistant.

Part II: Deploying a download server

First of all, you want to build a Web server, Mac can be done via Mamp (http://www.mamp.info/en/), download installation is basically all the way next, no difficulty, after the installation is complete, start Mamp, Check Apache Port in preference, default is 8888. Then click OK to close the preference. Just click Start Servers to start the Web server.

At this point other devices will be able to access your Web server through your computer's IP: port. For example, your Mac's IP is 192.168.1.107, and you can access the server by using your mobile browser (which is guaranteed to be in the same route, of course).

See here, you may want to directly put IPA into the server, and then use the mobile browser directly open the IPA for installation, but unfortunately this is not possible, Apple is not so open.

Although it is not possible to download and install the app by opening the IPA directly, we can also place the previously generated IPA and plist files on the desktop in the root directory of the Web server (the default is Application/mamp/htdocs). Remember before packaging the application, there is a application URL is random, here can enter the correct address: Assuming your IP address is 192.168.1.107,apache port is the default 8888, here application The URL should be HTTP://192.168.1.107:8888/**.IPA (here * * Fill in your app's name). The way to modify the application URL is to open the plist you just put in the root of the Web server, modify the value inside the URL, and change it to Http://192.168.1.107:8888/**.ipa.

Come to the Web server root directory, delete the original index.php file (of course, it is best to back up first), create a new index.html file (Sublime Text2 tool is recommended). Then enter the following statement (replace the http://192.168.1.107:8888/UVMork.plist with the appropriate address):

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" >

Once saved, accessing 192.168.1.107:8888 on your phone will enter this HTML page.

At this point, click on the app install, there will be two cases, if your iOS device is iOS7.0 or lower version, the app has started to install, but if your device is iOS7.1, unfortunately, will prompt the certificate is invalid, unable to install.

The reason for the inability to install is that Apple changed the Itms-services protocol after iOS7.1, and the app can only be installed online via the HTTPS protocol after the change. The Web servers we deployed earlier are HTTP-only and cannot be installed.

There are two ways to resolve this. The first is to add the HTTPS protocol to your Web server, and the second is to use a third-party network that uses the HTTPS protocol to store the plist and IPA files to achieve the same effect as the Web server you build yourself. But not any network disk can achieve this function, the domestic Baidu cloud disk, 360 and so on are not supported. Dropbox support abroad, but there is a wall, basically can't use. Here we are using the git.oschina.net mentioned in the beginning.

The next step is to store both IPA and plist in git.oschina.net, then modify the Web server Index.html's link address to the plist file at the Git.oschina.net address (you can get this address by looking at the file's original data), then iOS Device access to the original address (192.168.1.107:8888) will be installed correctly. If you've used git for code management, there's no need for tutorials. If you haven't been in touch with git, you can learn some of the basic features of Git first.

First sign in to Https://git.oschina.net, and then click the plus sign "Create a new project" in the upper right corner to fill in the project name of Xcode. Others can be left blank. Then click the Create Item button and the project is created.

Next, go to the address of the project and find the corresponding HTTPS address for the item (end with Git) and copy it to the Clipboard.

Then use your Git tool (for example, version) to place the item of this address locally, then push your IPA and plist files through the Git tool to the far end. After push is complete, refresh your git project's page in your browser to see the file you just push.

At this point, open the IPA file in the browser, right click on "Download", select the Copy download link. Then modify the URL of the plist file that you just push to the far end, and change it to this download connection. Commit,push to the far end again after modification.

Finally, open the Mamp server's Web page file directory, modify the address of the HTML is just push the address of the plist (through the browser to see the plist file of the original data can be obtained) on the line, iOS7.1 or newer devices will access the original address (192.168.1.107:8888) again via the browser, and clicking on the app installs the app correctly.

Next, you can design the download page to make this page look better. In addition, because the URL is the address of the LAN, so if you want to access the network, you also need to route port mapping, so that the extranet users can download to your application.

iOS app tutorial not released via AppStore

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.