git
echo “# WYChart” >> README.md
git init
git add README.md
git commit -m “first commit”
git remote add origin https://github.com/yuanwy/WYChart.git
git push -u origin master
git remote add origin https://github.com/yuanwy/WYChart.git
git push -u origin master
lipo -create libWYChart1.a libWYChart2.a -output libWYChart.a
Command line instructions
Git global setup
git config –global user.name “Amanda Yuan”
git config –global user.email “amanda.yuan@gwtsz.net”
Create a new repository
git clone ssh://git@172.20.35.48:242/amanda.yuan/wychart.git
cd wychart
touch README.md
git add README.md
git commit -m “add README”
git push -u origin master
Existing folder or Git repository
cd existing_folder
git init
git remote add origin ssh://git@172.20.35.48:242/amanda.yuan/wychart.git
git add .
git commit
git push -u origin master
openssl pkcs12 -in CertificateName.p12 -out CertificateName.pem -nodes
pod:
sudogemupdate–system//先更新gem,国内需要切换源
gem sources –remove https://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***
http://ruby.taobao.org/
sudogeminstallcocoapods//安装cocoapods安装:sudogeminstallcocoapods报Operationnotpermitted−/usr/bin/xcodeproj这个错误,解决办法为:sudogeminstall−n/usr/local/bincocoapods–pre
pod setup
pod update –no-repo-update
添加您的私有 repo 到 CocoaPods
pod repo add REPO_NAME SOURCE_URL
REPO_NAME:你创建的 repo 的名称
SOURCE_URL:源地址,如果是 gitHub 的地址就直接将那个地址 clone 。
检查一下安装是否成功,是否可用:
pod repo
pod repo lint –verbose
创建lib
pod lib create myLibName
然后再导入sourcetree就好了
连接验证
pod spec lint testMyPodlib.podspec –sources=’https://github.com/yuanwy/testMyPodlib.git’ –verbose –allow-warnings –use-libraries
pod repo push wyPodLib testMyPodlib.podspec –allow-warnings –use-libraries
CocoaPods trunk
pod –version
注册trunk
pod trunk register xxx@cocoapods.org ‘huangxx’ –description=’huangxx’ macbook pro’ –verbose
xxx@cocoapods.org - 一个真实存在的邮箱,不一定非得是@cocopods.org,例如QQ。
huangxx - 用户名
huangxx’s macbook pro - 描述性文字
如果所有的步骤都能成功的话,你会受到一份邮件,需要点击验证下。
查看trunk
pod trunk me
可以查看你已经注册的信息,其中包含你的name、email、since、Pods、sessions,其中Pods为你往CocoaPods提交的所有的Pod!
添加其他维护者(如果你的pod是由多人维护的,你也可以添加其他维护者)
pod trunk add-owner XPRACSignal wangxx@cocoapods.org
pod trunk push即可完成提交
xcode
xcodebuild -workspace /Users/chenyuan/Amanda/svn/ios/PM_GTS2/branches/testJenkins/PM_GTS2/PM_GTS2.xcworkspace -scheme PM_GTS2 -configuration Debug clean build CONFIGURATION_BUILD_DIR=/Users/chenyuan/Amanda/svn/jenkins/build
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash appName.crash appName.app > appName.log
base
chmod +x ./test.sh
授权sh
jenkins
java -jar Amanda/jenkins/slave.jar -jnlpUrl http://172.20.11.33:8080/jenkins/computer/Mac_Amanada/slave-agent.jnlp -secret dbe1c2f80a44d1033fd285ad808b2635488329399ed05d659956863911d5368e
jenkins节点
java -jar slave.jar -jnlpUrl http://172.20.11.33:8080/jenkins/computer/Mac_Amanada/slave-agent.jnlp -secret dbe1c2f80a44d1033fd285ad808b2635488329399ed05d659956863911d5368e
Scott 14:13:06
http://172.20.11.33:8080/jenkins/com
puter/Mac_Amanada/
Scott 14:13:30
slave.jar下载到本地
http://172.20.11.33:8080/jenkins/jnlpJars/slave.jar
Slave Mac_AT1
Scott 15:19:28
java -jar slave.jar -jnlpUrl http://172.20.11.33:8080/jenkins/computer/Mac_AT1/slave-agent.jnlp -secret 46406c428be530051ce5c7c9a0f00535efd7ca6b5b1292f327481e8df82000cf