简体   繁体   中英

KIF integration with Xcode using Cocoapods

I am trying to integrate KIF with Xcode using cocoapods. When i try to build the workspace, i face the following issue.

在此处输入图片说明

在此处输入图片说明

Its searching for the Pods-Framework shell script under the applications Xcode project but the shell script is present under the pods Xcode project.I tried changing the path but it gets replaced automatically when i build it. Can anyone provide a solution?

I think you have add KIF.Framework in your normal target . Please add these frameworks in new unit test case target created by you.

Recently I have installed KIF framework for one of my projects. I have followed the below steps,

  1. Created a project included with UnitTests and UITests.
  2. Added Cocoapod to the project and added these dependencies

pod 'KIF', '~> 3.2.0' pod 'Specta', '~> 1.0.2'

  1. And installed the cocoa pod to the iOS project.
  2. Add a new test case file called "UITests" inherited from "KIFTestCase".
  3. Import "#import #import " classes to the class.
  4. Write the test cases in "beforeAll" functions.

Eg: [tester enterText:@"user@example.com" intoViewWithAccessibilityLabel:@"UsernameTF"];

I didn't configure anything in Build Settings. But,am able to execute the test cases. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM