A Test pack distribution tutorial that allows you to quickly, easily, and in a single configuration, benefit for life. Are you still silly with airdrop,qq?
Usage Environment:
Suitable for iOS developers, often need to publish test packages to all kinds of people, then no need to work again later, one button. The company has an intranet server, or with the Mac OS students can use. Non-jailbroken phones can be used, as long as the normal binding of the certificate there is no problem.
The following is a tutorial, quite simple.
Server IP Take 192.168.1.188 as an example, port 8080
The first step, configure the Run script to package the IPA and complete the IPA upload deployment process, Xcode opens Target->build phases->add build phase->add Run script to add the following code, And according to their own use of the environment to make adjustments.
# Shell script goes here# compress application.If [ "${configuration}" = "Ad_hoc" ]; Then #判断发布版本/Bin/mkdir $CONFIGURATION _build_dir/Payload/Bin/Cp-R $CONFIGURATION _build_dir/Instasoccer.App $CONFIGURATION _build_dir/Payload/Bin/CP ISoccer/Icon/Itunesartwork $CONFIGURATION _build_dir/ITUNESARTWORKCD $CONFIGURATION _build_dir# zip up the Instasoccer directory/Usr/Bin/zip -r instasoccer< Span class= "pun". ipa payload Itunesartwork/ usr/bin/SCP instasoccer.. 168.1. 188:~/ipa_publish/ # SCP to server path, if you open the server with Mac, you can use CP to webserver path fiexit 0
The second step is to deploy the server. You can use the Mac OS Web sharing, you can also use Python to open one, of course, you can also use the intranet server, external network server, the requirements are very low, throw a few static files on it.
About Mac OS 10.8 in the preferences there is no web sharing, to open the words need to manually write a configuration file, method please self-search.
Sample Download
There are 2 files in the sample, index.html and Info.plist
index.html Modify one place, "http://192.168.1.188:8080/Info.plist" changes to your corresponding path
<meta CharSet="Utf-8" /><title> Minroad One-click installation </title> <a style= " font-size: 5em; href=>install </a><HTML>
Info.plist, modify the IPA path (if you use SCP see if you have the same path after SCP), icon, version number, bundle ID, program name
<?XML version="1.0"Encoding="UTF-8"?><! DOCTYPE plist Public "-//apple//dtd plist 1.0//en" "Http://www.apple.com/DTDs/PropertyList-1.0.dtd" ><plist Version="1.0"><dict><key>Items</key><array><dict><key>Assets</key><array><dict><key>Kind</key><string>Software-package</string><key>Url</key><string>Http://192.168.1.188:8080/InstaSoccer.ipa</string></dict><dict><key>Kind</key><string>Display-image</string><key>Needs-shine</key><true/><key>Url</key><string>Http://192.168.1.188:8080/Icon.png</string></dict><dict><key>Kind</key><string>Full-size-image</string><key>Needs-shine</key><true/><key>Url</key><string>Http://192.168.1.188:8080/Icon.png</string></dict></array><key>Metadata</key><dict><key>Bundle-identifier</key><string>Com.minroad.appid</string><key>Bundle-version</key><string>2.8.2</string><key>Kind</key><string>software</string>< Span class= "PLN" ><key>subtitle</key> <string> One click Install subtitle </string>< Span class= "PLN" ><key>title</key> <string> One-click Installer name </string>< Span class= "PLN" ></dict></dict> </array></dict> </PLIST>
Then at the start of webserver, the method is much more gone, providing a python, Mac OS can also be used
To current directory -simplehttpserver8080>/dev/null2>&1&
At this point, using your iOS settings to access the URL, this example is http://192.168.1.188:8080, will appear the following content
Click Install to install it automatically. Worry and effort! As long as the site collection, the future distribution of things and developers are irrelevant
Reprint please indicate the source: http://www.minroad.com/?p=688