Mac 安装 home Brew以及 XCTool的过程记录
一、HomeBrew相关:
先对HomeBrew做一个简单的介绍吧,之前了解的也不多。
主要就是用于安装Unix的工具包。
注意:HomeBrew依赖于Xcode的 Command Line Tool.
官方的链接:
http://mxcl.github.io/homebrew/
Homebrew作为OS X上强大的包管理器,为系统软件提供了非常方便的安装方式,独特式的解决了包的依赖问题,并不再需要烦人的sudo,一键式编译,无参数困扰,真的,你值得拥有。
安装
Homebrew依赖于XCode,首先需要安装,lion后XCode也是免费的了,直接到App store下载。同时Homebrew也依赖ruby,Mac已经自带ruby。
1 |
|
使用
- 查看brew的帮助
1 |
|
- 安装软件
1 |
|
- 卸载软件
1 |
|
- 搜索软件
1 |
|
- 显示已经安装软件列表
1 |
|
- 更新软件,把所有的Formula目录更新,并且会对本机已经安装并有更新的软件用*标明。
1 |
|
- 更新某具体软件
1 |
|
- 查看软件信息
1 |
|
- 删除程序,和upgrade一样,单个软件删除和所有程序老版删除。
1 |
|
- 查看那些已安装的程序需要更新
1 |
|
程序安装路径及文件夹
Homebrew将本地的/usr/local初始化为git的工作树,并将目录所有者变更为当前所操作的用户,以后的操作将不需要sudo。
1 |
|
HomeBrew与MacPorts的比较,貌似MacPorts会被人逐渐遗弃
http://hi.hiing.net/2011/06/use-homebrew-package-management.html
二、XCTool相关
xctool是facebook开源的一个命令行工具,用来替代苹果的xcodebuild工具。
功能如下:
- 像xcode一样跑测试用例
- 结构化输出编译测试结果
- 彩色且方便阅读的编译内容输出
示例截图:

如何安装xctool
最简单的办法是通过homebrew安装xctool
brew update
brew install xctool
搞定
如何使用xctool
打包
path/to/xctool.sh \
-workspace YourWorkspace.xcworkspace \
-scheme YourScheme \
archive
build
path/to/xctool.sh \
-workspace YourWorkspace.xcworkspace \
-scheme YourScheme \
build
测试
path/to/xctool.sh \
-workspace YourWorkspace.xcworkspace \
-scheme YourScheme \
test
使用命令如下,上面的命令参照
切换到工程目录下,然后输入如下命令:
xctool -workspace taoappios.xcworkspace -scheme taoappios archive
生成archive文件
xctool -workspace taoappios.xcworkspace -scheme taoappios build
编译
usage: xctool [BASE OPTIONS] [ACTION [ACTION ARGUMENTS]] ...
Examples:
xctool [BASE OPTIONS] clean
xctool [BASE OPTIONS] build
xctool [BASE OPTIONS] build-tests [-only TARGET] [-skip-deps]
xctool [BASE OPTIONS] run-tests [-test-sdk SDK] [-only SPEC] [-freshSimulator] [-freshInstall]
xctool [BASE OPTIONS] test [-test-sdk SDK] [-only SPEC] [-skip-deps] [-freshSimulator] [-freshInstall]
xctool [BASE OPTIONS] archive
Base Options:
-help show help
-workspace PATH path to workspace
-project PATH path to project
-scheme NAME scheme to use for building or testing
-find-target TARGET Search for the workspace/project/scheme to build the target
-find-target-path PATH Path to search for -find-target.
-find-target-exclude-pathColon-separated list of paths to exclude for -find-target.
-sdk VERSION sdk to use for building (e.g. 6.0, 6.1)
-configuration NAME configuration to use (e.g. Debug, Release)
-jobs NUMBER number of concurrent build operations to run
-arch ARCH arch to build for (e.g. i386, armv7)
-toolchain PATH path to toolchain
-xcconfig PATH path to an xcconfig
-reporter TYPE[:FILE] add reporter
-showBuildSettings display a list of build settings and values
-version print version and exit
SETTING=VALUE Set the build 'setting' to 'value'
Options for 'build-tests' action:
-only TARGET build only a specific test TARGET
-skip-deps Only build the target, not its dependencies
Options for 'run-tests' action:
-test-sdk SDK SDK to test with
-only SPEC SPEC is TARGET[:Class/case[,Class2/case2]]
-freshSimulator Start fresh simulator for each application test target
-freshInstall Use clean install of TEST_HOST for every app test run
Options for 'test' action:
-test-sdk SDK SDK to test with
-only SPEC SPEC is TARGET[:Class/case[,Class2/case2]]
-skip-deps Only build the target, not its dependencies
-freshSimulator Start fresh simulator for each application test target
-freshInstall Use clean install of TEST_HOST for every app test run
Mac 安装 home Brew以及 XCTool的过程记录的更多相关文章
- Mac 安装工具包brew
linux有命令行工具 apt-get ,Mac 下也有类似的brew 也就是HomeBrew 网址:http://brew.sh/index_zh-cn.html 可以看到mac安装的时候只需要执行 ...
- mac安装神器brew
安装方法:命令行输入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/ma ...
- mac安装卸载brew
1.安装 访问https://brew.sh,copy图中的命令到命令行中,进行下载安装 2.卸载 官方版本的卸载: /usr/bin/ruby -e "$(curl -fsSL https ...
- Mac安装最新tensorflow遇到的坑,记录下方便后人
之前其他mac电脑安装tensorflow时候一切顺利,一行命令sudo pip install tensorflow就高搞定了,但是今天在新mac上安装tensorflow时候出现了一个bug,搞了 ...
- Mac旧机「焕」新机过程记录
一.首先我做了非硬件上的优化处理,在升级到10.14之前还是挺管用的.但是为了使用最新的iOS SDK,升级到10.14以后,已经不管用了. 1.设置->通用 将动画相关的选项去掉. 2.设置- ...
- ubuntu16.04x64环境下 tar方式 安装mysql-5.7.21 试水过程记录
前几天读研时候上铺的同学和我说到了一个问题,就是他们单位的redhat服务器给MySQL服务的数据库文件所在的磁盘空间不够了,对于这个问题我也是没有想过的,在受朋友之托下考虑自己做下复现,由于同学所在 ...
- docker安装CentOS7及JNI使用相关过程记录
docker pull centos:centos7(拉取镜像) docker run -itd --name centos-test centos:centos7 (运行容器) docker exe ...
- mac安装brew, bower
Mac安装Brew 安装命令如下:curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/loc ...
- 关于docker-环境部署及拉取镜像创建容器的过程记录
背景:因安全部门要求对特定几台应用主机的进行漏洞及脆弱性扫描,使用的工具需要基于docker环境,即他们提供镜像,让我们创建成容器,于是将整个环境安装及创建docker容器的过程记录于此 1.还是先得 ...
随机推荐
- NSDictionary to jsonString
NSDictionary to jsonString [self DataTOjsonString:dic] -(NSString*)DataTOjsonString:(id)object { NSS ...
- iOS工作笔记(十四)
1.scrollview的frame指的是其可视范围,contentSize指的是其滚动范围,分别是在水平方向和竖直方向上的 所以要让scrollview在水平方向不能滚动,那么需要如下设置 _scr ...
- 搭建angular前端框架 命令
首先必备的工具都下下好. 然后现在开始输入命令行创建angular 项目 1.node cd .. 2.yo bower grunt 3.npm install -g generator-angula ...
- python学习之路-day3
本节内容 1.集合操作 2.文件操作 3.字符编码与转码 4.函数 ==================================== 一.集合操作 集合是一个无序的,不重复的数据组合,它的主要 ...
- FreeBSD_11-系统管理——{Part_4 - 内核参数定制}
特别提醒:自行定制的内核,必須经过全方位测试无誤后,方能用于生产环境 基于:/usr/src/sys/amd64/conf/GENERIC cpu HAMMER ident TEST_kernel # ...
- Unity5的AssetBundle的一点使用心得
昨天一位朋友在我这里留言,想让我写点Unity5的AssetBundle心得.于是我就看了相关的介绍,和自己确切的做了一次.下面来谈谈所谓的心得. 如果你觉得自己对AssetBundle不熟悉,建议先 ...
- centos 6.5 + php5.5.31 fastcgi (fpm) 编译安装
yum intsall zlib zlib-devel //gzip 压缩和解压 yum install openssl openssl-devel yum install libxml2 libxm ...
- (二分)Block Towers(cf626)
http://www.codeforces.com/contest/626/problem/C 题意是有一群小朋友在堆房子,现在有n个小孩每次可以放两个积木,m个小孩,每次可以放3个积木,最后每个小孩 ...
- 第44讲:Scala中View Bounds代码实战及其在Spark中的应用源码解析
今天学习了view bounds的内容,来看下面的代码. //class Pair[T <: Comparable[T]](val first : T,val second : T){// d ...
- MySQL表定义缓存
表定义 MySQL的表包含表名,表空间.索引.列.约束等信息,这些表的元数据我们暂且称为表定义信息. 对于InnoDB来说,MySQL在server层和engine层都有表定义信息.server层的表 ...