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 2 |
|
- 查看那些已安装的程序需要更新
1 |
|
程序安装路径及文件夹
Homebrew将本地的/usr/local
初始化为git的工作树,并将目录所有者变更为当前所操作的用户,以后的操作将不需要sudo。
1 2 3 4 5 6 |
|
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安装home brew
Mac安装home brew 我们都知道平时安装软件都是从各个渠道进行下载安装.在mac上有个home brew 用来管理我们笔记本的软件安装包. 1.打开home brew官网 https://br ...
- 深度学习-在自带显卡GeForce RTX 2070的研华MIC-770工控机上安装Ubuntu18.04及显卡驱动过程记录
在自带显卡GeForce RTX 2070的研华MIC-770工控机上安装Ubuntu18.04及显卡驱动过程记录 1. 确认工控机是否带有独立显卡及显卡的型号 输入 lspci | grep -i ...
- Mac 安装home brew出错
mark翻车经过 鹿晗公开恋情了...hhhh跟我没有关系,老薛Got7大法好!!! 安装homebrew的时候翻车了... 原因大概是不懂mac得.git/config的权限,强行回忆了一波操作系统 ...
- u盘启动安装ubuntu与windows双系统过程记录以及可能出现的问题提示
突然算算用ubuntu也挺久了,从一开始师兄帮忙装到后来自己装到后来给别人装,从14装到15装到16,第一次装胆战心惊怕连windows都进不了,到后来装多了实在是冷漠脸了--记忆太短暂,每次装机都遇 ...
- 关于64位windows7系统下安装IE11失败(9c59)的解决过程记录
在64位windows7 sp1系统环境下,想要安装IE11时总是提示errorCode=9c59的未知错误. 经过网络搜索最终排除了这个错误,安装成功.因为最终没有精确地找到问题发生的原因,现将有利 ...
- Mac安装nmap及常用命令【亲测有用】
nmap是网络扫描和主机检测的工具. 用nmap进行信息收集和检测漏洞,功能有: 检测存活主机. 检测主机开放端口(端口发现或枚举). 检测端口对应的软件和版本. 检测操作系统类型.版本,硬件地址和软 ...
- Mac 安装PHP环境
Mac安装PHP环境 1.安装brew /bin/zsh -c "$(curl -fsSLhttps://gitee.com/cunkai/HomebrewCN/raw/master/Hom ...
- Mac安装和启动memcached
今天跑代码时发生了这样的错误, 排查过后发现是memcached没有启动.................. mac安装memcached: brew install memcached 用Homeb ...
- Mac安装prometheus node_exporter
Mac 安装prometheus brew install prometheus 启动prometheus prometheus --config.file=/usr/local/etc/promet ...
- mac 安装python 报错:gdbm fatal: not in a git directory
mac安装python : brew install python3 安装最后报错: Installing python@3.10 dependency: gdbm fatal: not in a g ...
最新文章
- 王炸!无需额外数据,Transformers超越CNN问鼎ImageNet
- CIC滤波器的Matlab仿真与FPGA实现
- java生成流水号001_可变数据如何批量生成?
- Android 5.x Theme 与 ToolBar 实战
- JavaScript 经常忽略的 7 个基础知识点
- 云+X案例展 | 民生类:中国电信天翼云携手国家天文台打造“大国重器”
- 最近,我在Spring的BeanUtils踩了不少坑
- 微课|中学生可以这样学Python(例4.2):打印九九乘法表
- windows server 2012r2 快速启动模式部署remoteapp,检查兼容性,显示有挂起的重新启动...
- Java中的hashCode和equals的解析
- newifi3 高恪魔改_newifi新路由3一键刷breed刷机教程及高恪固件 | 小闻网
- 概率扩散模型 Probabilistic Diffusion Model
- python的装饰器和find函数的使用
- VTuber拍摄幕后:操作员、动捕设备、软件支撑
- 徐静蕾代言“英纳格”的十大不合理
- 响应式布局对图片像素的解决
- npm run build: rimraf: command not found
- 什么是零代码开发平台,为什么企业IT应该重视?
- C++ 的 Copy Elision
- Excel 如何排序与多关键字排序