美文网首页
1 install earlgrey to the projec

1 install earlgrey to the projec

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

CocoaPods installation

https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md#github-installation

step 1:

Add Target, select iOSTestiOS Unit Testing Bundle

ProductSchemeManage Schemes, press the plus(+)sign, and then select the target from the dropdown menu. Ensure the Container is set to the app under test.

Step 2: Add EarlGrey as a framework dependency

Install the EarlGrey gem by doing gem install earlgrey. //sudo gem install earlgrey -n /usr/local/bin

In the test target's section in your Podfile, add EarlGrey as a dependency.

open -e Podfile

target TEST_TARGET do

project PROJECT_NAME

use_frameworks! # Required for Swift Test Targets only

inherit! :search_paths # Required for not double-linking libraries in the app and test targets.

pod 'EarlGrey'

end

Once finished, do a pod install. 

Step 3: Open the workspace and verify that you see EarlGrey.

After you successfully run thepod installcommand, open the generated workspace and find EarlGrey installed in thePods/directory.

------------

schema ->diagnostics-> don't check main thread checker

相关文章

网友评论

      本文标题:1 install earlgrey to the projec

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