Skip to content

Commit

Permalink
Fix podspec lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
younata committed Dec 20, 2023
1 parent ee9c5dc commit 74ef471
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Nimble.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ Pod::Spec.new do |s|
'OTHER_SWIFT_FLAGS' => '$(inherited) -suppress-warnings',
}


s.dependency 'CwlPreconditionTesting', '~> 2.1.0'
s.dependency 'CwlCatchException', '~> 2.1.0'
[s.osx, s.ios].each do |platform|
platform.dependency 'CwlMachBadInstructionHandler', '~> 2.1.0'
platform.dependency 'CwlCatchException', '~> 2.1.0'
end

s.cocoapods_version = '>= 1.4.0'
if s.respond_to?(:swift_versions) then
Expand Down
2 changes: 1 addition & 1 deletion Sources/Nimble/Matchers/ThrowAssertion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public func catchBadInstruction(block: @escaping () -> Void) -> BadInstructionEx

public func throwAssertion<Out>() -> Matcher<Out> {
return Matcher { actualExpression in
#if (arch(x86_64) || arch(arm64)) && (canImport(Darwin) || canImport(Glibc))
#if (arch(x86_64) || arch(arm64)) && (canImport(CwlPreconditionTesting) || canImport(CwlPosixPreconditionTesting) || canImport(Glibc))
let message = ExpectationMessage.expectedTo("throw an assertion")
var actualError: Error?
let caughtException: BadInstructionException? = catchBadInstruction {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Nimble/Nimble.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#import <Nimble/DSL.h>

#if TARGET_OS_OSX || TARGET_OS_IOS
#import <CwlMachBadInstructionHandler.h>
#import <CwlCatchException.h>
#import "CwlMachBadInstructionHandler.h"
#import "CwlCatchException.h"
#endif

FOUNDATION_EXPORT double NimbleVersionNumber;
Expand Down

0 comments on commit 74ef471

Please sign in to comment.