Skip to content

Commit e1dc755

Browse files
committed
Install SwiftLint via CocoaPods
1 parent e889ebd commit e1dc755

File tree

6 files changed

+22
-25
lines changed

6 files changed

+22
-25
lines changed

.swiftlint-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Example.xcodeproj/project.pbxproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,16 @@
263263
files = (
264264
);
265265
inputPaths = (
266+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
267+
"${PODS_ROOT}/Manifest.lock",
266268
);
267269
name = "[CP] Check Pods Manifest.lock";
268270
outputPaths = (
271+
"$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt",
269272
);
270273
runOnlyForDeploymentPostprocessing = 0;
271274
shellPath = /bin/sh;
272-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
275+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
273276
showEnvVarsInLog = 0;
274277
};
275278
B5C50ADD1C917F4A0059032B /* Swift Lint */ = {
@@ -284,17 +287,20 @@
284287
);
285288
runOnlyForDeploymentPostprocessing = 0;
286289
shellPath = /bin/sh;
287-
shellScript = "sh ${SRCROOT}/scripts/swiftlint.sh";
290+
shellScript = "${PODS_ROOT}/SwiftLint/swiftlint";
288291
};
289292
CAB3B20531AAE2438C48D751 /* [CP] Embed Pods Frameworks */ = {
290293
isa = PBXShellScriptBuildPhase;
291294
buildActionMask = 2147483647;
292295
files = (
293296
);
294297
inputPaths = (
298+
"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh",
299+
"${BUILT_PRODUCTS_DIR}/ICInputAccessory/ICInputAccessory.framework",
295300
);
296301
name = "[CP] Embed Pods Frameworks";
297302
outputPaths = (
303+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ICInputAccessory.framework",
298304
);
299305
runOnlyForDeploymentPostprocessing = 0;
300306
shellPath = /bin/sh;

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
install: brew-install bundle-install pod-install
1+
bootstrap:
2+
gem install bundler
3+
bundle install
4+
bundle exec pod install
5+
6+
install: bundle-install pod-install
27

38
brew-install:
49
brew tap homebrew/bundle
@@ -8,14 +13,7 @@ bundle-install:
813
bundle install --without development --deployment --jobs=3 --retry=3
914

1015
pod-install:
11-
bundle exec pod install --no-repo-update
12-
13-
bootstrap:
14-
brew tap homebrew/bundle
15-
brew bundle
16-
gem install bundler
17-
bundle install
18-
bundle exec pod install --no-repo-update
16+
bundle exec pod install
1917

2018
carthage:
2119
set -o pipefail && carthage build --no-skip-current --verbose | bundle exec xcpretty

Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ project "Example"
88
target "Example" do
99
pod "ICInputAccessory/KeyboardDismissTextField", path: "./"
1010
pod "ICInputAccessory/TokenField", path: "./"
11+
pod "SwiftLint", "0.19.0"
1112
end
1213

1314
post_install do |installer|

Podfile.lock

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
PODS:
22
- ICInputAccessory/KeyboardDismissTextField (1.4.0)
33
- ICInputAccessory/TokenField (1.4.0)
4+
- SwiftLint (0.19.0)
45

56
DEPENDENCIES:
67
- ICInputAccessory/KeyboardDismissTextField (from `./`)
78
- ICInputAccessory/TokenField (from `./`)
9+
- SwiftLint (= 0.19.0)
810

911
EXTERNAL SOURCES:
1012
ICInputAccessory:
11-
:path: "./"
13+
:path: ./
1214

1315
SPEC CHECKSUMS:
1416
ICInputAccessory: dace41bea1ed8b0368bf8ffd439a215efa8effd3
17+
SwiftLint: 3537a05b34060e78e7510f04fb7537d738247803
1518

16-
PODFILE CHECKSUM: 6e8fb9f23fc92d92278fbf08ca8ef072ef28a486
19+
PODFILE CHECKSUM: a2f3f54a890602e56a62a49ef8e9b80f436b0899
1720

18-
COCOAPODS: 1.1.1
21+
COCOAPODS: 1.3.1

scripts/swiftlint.sh

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

0 commit comments

Comments
 (0)