美文网首页
5.5 KIF安装

5.5 KIF安装

作者: 冰皮月饼真好吃 | 来源:发表于2017-12-12 18:05 被阅读0次

https://github.com/kif-framework/KIF#final-test-target-configurations

0 打开项目 File->New Target->Select iOS -> Test -> iOS Unit Testing Bundle,命名Acceptance Tests

1 修改podfile(ios目录下) 输入命令 open -e Podfile

2 增加内容

target'Acceptance Tests'do

pod'KIF',:configurations=> ['Debug']

end

3 ios目录下  输入命令pod install

4 选中target进行修改

First add your application by selecting "Build Phases", expanding the

"Target Dependencies" section, clicking on the "+" button, and in the

new sheet that appears selecting your application target and clicking

"Add".

Next, configure your bundle loader. In "Build Settings", expand

"Linking" and edit "Bundle Loader" to be "$(TEST_HOST)". Expand the

"Testing" section and edit "Test Host" to be

"$(BUILT_PRODUCTS_DIR)/MyApplication.app/MyApplication" where

"MyApplication" is the name of your app. Also make sure that "Wrapper

Extension" is set to "xctest".

5 new schema 'Acceptance Tests', test运行于机器

相关文章

网友评论

      本文标题:5.5 KIF安装

      本文链接:https://www.haomeiwen.com/subject/inwiixtx.html