XCTools
2015-05-04 17:17
92 查看
安装
安装很简单首先安装Homebrewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"[/code]
然后安装brew install xctool使用
文档
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] [-resetSimulator] [-freshInstall] [-parallelize] [-logicTestBucketSize N] [-appTestBucketSize N] [-bucketBy BUCKETBY] [-failOnEmptyTestBundles] [-listTestsOnly] [-targetedDeviceFamily FAMILY] [-testTimeout N] [-logicTest BUNDLE] [-appTest BUNDLE:HOST_APP] xctool [BASE OPTIONS] test [-test-sdk SDK] [-only SPEC] [-skip-deps] [-freshSimulator] [-resetSimulator] [-freshInstall] [-parallelize] [-failOnEmptyTestBundles] [-logicTestBucketSize N] [-appTestBucketSize N] [-bucketBy BUCKETBY] [-listTestsOnly] [-testTimeout N] xctool [BASE OPTIONS] archive [-archivePath PATH] xctool [BASE OPTIONS] analyze [-only TARGET] [-skip-deps] [-failOnWarnings] xctool [BASE OPTIONS] install Base Options: -help show help -workspace PATH path to workspace -project PATH path to project -scheme NAME scheme to use for building or testing -resultBundlePath PATH path to bundle to write results from performing a build action -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-paths Colon-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) -destination DESTINATION use the destination described by DESTINATION (a comma-separated set of key=value pairs describing the destination to use) -destination-timeout DESTINwait for TIMEOUT seconds while searching for the destination device -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 -showTasks show all tasks being spawned by xctool -version print version and exit -derivedDataPath PATH override the default derived data path -launch-timeout TIMEOUT simulator launch timeout in seconds (default is 30 seconds) SETTING=VALUE Set the build 'setting' to 'value' -DEFAULT=VALUE Set the user default 'default' to 'value' Available Reporters: json-compilation-database json-stream junit phabricator plain pretty teamcity user-notifications 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 -resetSimulator Reset simulator content and settings and restart it before running every app test run. -freshInstall Use clean install of TEST_HOST for every app test run -parallelize Parallelize execution of tests -logicTestBucketSize N Break logic test bundles in buckets of N test cases. -appTestBucketSize N Break app test bundles in buckets of N test cases. -bucketBy BUCKETBY Either 'case' (default) or 'class'. -failOnEmptyTestBundles Fail when an empty test bundle was run. -listTestsOnly Skip actual test running and list them only. -targetedDeviceFamily FAMILTarget specific type of simulator when running tests (1=iPhone, 2=iPad, 4=Apple Watch) -testTimeout N Force individual test cases to be killed after specified timeout. -logicTest BUNDLE Add a path 865b to a logic test bundle to run -appTest BUNDLE:HOST_APP Add a path to an app test bundle with the path to its host app 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 -resetSimulator Reset simulator content and settings and restart it before running every app test run. -freshInstall Use clean install of TEST_HOST for every app test run -parallelize Parallelize execution of tests -failOnEmptyTestBundles Fail when an empty test bundle was run. -logicTestBucketSize N Break logic test bundles in buckets of N test cases. -appTestBucketSize N Break app test bundles in buckets of N test cases. -bucketBy BUCKETBY Either 'case' (default) or 'class'. -listTestsOnly Skip actual test running and list them only. -testTimeout N Force individual test cases to be killed after specified timeout. Options for 'archive' action: -archivePath PATH PATH where created archive will be placed. Options for 'analyze' action: -only TARGET only analyze selected targets, can be used more than once. If this option is specified, its dependencies are assumed to be built. -skip-deps Skip initial build of the scheme -failOnWarnings Fail builds if analyzer warnings are found
相关文章推荐
- 自动化 Code Review
- OCLint-iOS-OC项目几种简单使用
- iOS 持续集成- 使用xctool实现自动化打包
- iOS自动构建以及打包命令(xctool)
- Mac下用命令行打ipa包
- xcode 8 /iOS10下静态库和动态库的区别 && framework的制作
- 线程中的一些问题
- 实现图片上传
- Android开发之低调的Service
- 【MFC】虚拟键代码
- asp.net WebService及应用
- eclipse,myeclipse开发环境下,maven远程部署到tomcat7服务器(图文)
- java读取文件列表后排序
- android对话框代码中设置背景为透明
- 黑马程序员——java高新(枚举、内省、注解、类加载器)
- 【ssh】 ssh完整例子--ssh的初步灵活运用
- 剑指offer 面试题13—在O(1)时间删除链表节点
- CentOS下Nginx+PHP安装
- [工具推荐]001.FlipPDF使用教程
- jquery实现的美女拼图游戏实例