Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
| /* gets the data from a URL */ | |
| function get_data($url) { | |
| $ch = curl_init(); | |
| $timeout = 5; | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); | |
| curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11"); | |
| curl_setopt($ch, CURLOPT_REFERER, $url); | |
| $data = curl_exec($ch); |
| 王 | |
| 江 | |
| 周 | |
| 胡 | |
| 刘 | |
| 李 | |
| 吴 | |
| 毛 | |
| 温 | |
| 习 |
| # | |
| # iOS 友盟发布渠道自动化脚本 | |
| # | |
| # - 在 Archive 的 "Post-action" 添加脚本去执行 "/bin/sh $SRCROOT/package.sh" | |
| # - 确保在 "Provide build setting from" 选择了当前的 App | |
| # - 在项目根目录($SRCROOT)添加 "iTunesArtwork" 文件(符合 App Store 提交要求的 512x512 px, PNG 格式) | |
| # - 在下面 "" 设置你需要的发布渠道(空格分隔) | |
| # - 在下面设置打包后的 ipa 的输出路径(可选) | |
| # - 执行 "Product > Archive" | |
| # |
| # -*- coding: utf-8 -*- | |
| # | |
| # Copyright(c) 2010 poweredsites.org | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may | |
| # not use this file except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| #!/bin/sh | |
| # Change this line to the URI path of the xcode DMG file. | |
| # XCode 3.2.5 | |
| #XCODE_PATH="/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg" | |
| # XCode 4 | |
| #XCODE_PATH="/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg" |
| #!/bin/sh | |
| # | |
| # Copyright (c) 2010 Warren Merrifield | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| *.pbxproj -crlf -diff -merge |