Skip to content

Commit af1670c

Browse files
authored
Remove CocoaPods support (#1342)
1 parent 125ca39 commit af1670c

3 files changed

Lines changed: 15 additions & 70 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
pull_request:
77

88
jobs:
9-
validate_spec:
9+
validate_package:
1010
runs-on: macos-latest
1111
steps:
1212
- name: Checkout Project
1313
uses: actions/checkout@v1
1414

15-
- name: Validate podspec
16-
run: pod lib lint
15+
- name: Validate Package
16+
run: swift build --sdk "`xcrun --sdk iphonesimulator --show-sdk-path`" --triple arm64-apple-ios13.0-simulator
1717
build_macos15:
1818
runs-on: macos-15
1919
strategy:

KIF.podspec

Lines changed: 0 additions & 29 deletions
This file was deleted.

README.md

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,21 @@ See KIF in Action
3636

3737
KIF uses techniques described below to validate its internal functionality. You can see a test suite that exercises its entire functionality by simply building and testing the KIF scheme with ⌘U. Look at the tests in the "Tests" group for ideas on how to build your own tests.
3838

39+
40+
Installation (with Swift Package Manager)
41+
-----------------------------------------
42+
43+
Add the KIF package as a dependency:
44+
45+
```swift
46+
.package(url: "https://github.com/kif-framework/KIF", from: {VERSION})
47+
```
48+
3949
Installation (with CocoaPods)
4050
-----------------------------
4151

52+
⚠️ CocoaPods is no longer supported and will not be receiving new updates
53+
4254
[CocoaPods](http://cocoapods.org) are the easiest way to get set up with KIF.
4355

4456
The first thing you will want to do is set up a test target you will be using for KIF. You may already have one named *MyApplication*_Tests if you selected to automatically create unit tests. If you did, you can keep using it if you aren't using it for unit tests. Otherwise, follow these directions to create a new one.
@@ -61,33 +73,6 @@ end
6173

6274
After running `pod install` complete the tasks in [**Final Test Target Configurations**](#final-test-target-configurations) below for the final details on getting your tests to run.
6375

64-
Installation (from GitHub)
65-
--------------------------
66-
67-
To install KIF, you'll need to link the libKIF static library directly into your application. Download the source from the [kif-framework/KIF](https://github.com/kif-framework/KIF/) and follow the instructions below. The screenshots are from Xcode 6 on Yosemite, but the instructions should be the same for Xcode 5 or later on any OS version.
68-
69-
We'll be using a simple project as an example, and you can find it in `Documentation/Examples/Testable Swift` in this repository.
70-
71-
![Simple App](https://github.com/kif-framework/KIF/raw/master/Documentation/Images/Simple%20App.png)
72-
73-
74-
### Add KIF to your project files
75-
The first step is to add the KIF project into the ./Frameworks/KIF subdirectory of your existing app. If your project uses Git for version control, you can use submodules to make updating in the future easier:
76-
77-
```
78-
cd /path/to/MyApplicationSource
79-
mkdir Frameworks
80-
git submodule add https://github.com/kif-framework/KIF.git Frameworks/KIF
81-
```
82-
83-
If you're not using Git, simply download the source and copy it into the `./Frameworks/KIF` directory.
84-
85-
### Add KIF to Your Workspace
86-
Let your project know about KIF by adding the KIF project into a workspace along with your main project. Find the `KIF.xcodeproj` file in Finder and drag it into the Project Navigator (⌘1).
87-
88-
![Added KIF to the project](https://github.com/kif-framework/KIF/raw/master/Documentation/Images/Added%20KIF%20to%20Project.png)
89-
90-
9176
### Create a Testing Target
9277
You'll need to create a test target for your app. You may already have one named *MyApplication*Tests if you selected to automatically create unit tests when you created the project. If you did, you can keep using it if you aren't using it for unit tests. Otherwise, follow these directions to create a new one.
9378

@@ -110,17 +95,6 @@ KIF takes advantage of Objective C's ability to add categories on an object, but
11095

11196
Read **Final Test Target Configurations** below for the final details on getting your tests to run.
11297

113-
Installing Accessibility Identifier Tests
114-
-----------------------------------------
115-
116-
Normally you identify a UI element via its accessibility label so that KIF simulates the interactions of a real user as closely as possible. In some cases, however, you may have to use accessibility identifiers, which are not exposed to users. If using CocoaPods, install the additional identifier-based Tests via the Identifier CocoaPods subspec:
117-
118-
```
119-
pod 'KIF/IdentifierTests'
120-
```
121-
122-
If not using CocoaPods, the identifier-based Tests can be added by including "KIFUITestActor-IdentifierTests.h".
123-
12498
Final Test Target Configurations
12599
--------------------------------
126100

0 commit comments

Comments
 (0)