1Pod::Spec.new do |s| 2 s.name = "Nimble" 3 s.version = "9.2.1" 4 s.summary = "A Matcher Framework for Swift and Objective-C" 5 s.description = <<-DESC 6 Use Nimble to express the expected outcomes of Swift or Objective-C expressions. Inspired by Cedar. 7 DESC 8 s.homepage = "https://github.com/Quick/Nimble" 9 s.license = { :type => "Apache 2.0", :file => "LICENSE" } 10 s.author = "Quick Contributors" 11 s.ios.deployment_target = "9.0" 12 s.osx.deployment_target = "10.10" 13 s.tvos.deployment_target = "9.0" 14 s.source = { :git => "https://github.com/Quick/Nimble.git", 15 :tag => "v#{s.version}" } 16 17 s.source_files = [ 18 "Sources/**/*.{swift,h,m,c}", 19 "Carthage/Checkouts/CwlCatchException/Sources/**/*.{swift,h,m,c}", 20 "Carthage/Checkouts/CwlPreconditionTesting/Sources/**/*.{swift,h,m,c}", 21 ] 22 23 s.osx.exclude_files = [ 24 "Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPosixPreconditionTesting/CwlCatchBadInstructionPosix.swift", 25 ] 26 s.ios.exclude_files = [ 27 "Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPosixPreconditionTesting/CwlCatchBadInstructionPosix.swift", 28 ] 29 s.tvos.exclude_files = [ 30 "Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlMachBadInstructionHandler/include/CwlMachBadInstructionHandler.h", 31 "Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift", 32 "Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift", 33 "Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift", 34 "Carthage/Checkouts/CwlCatchException/Sources/CwlCatchException/CwlCatchException.swift", 35 "Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/CwlCatchException.m", 36 "Carthage/Checkouts/CwlCatchException/Sources/CwlCatchExceptionSupport/include/CwlCatchException.h", 37 ] 38 39 s.exclude_files = "Sources/Nimble/Adapters/NonObjectiveC/*.swift" 40 s.header_dir = "Nimble" 41 s.weak_framework = "XCTest" 42 s.requires_arc = true 43 s.compiler_flags = '-DPRODUCT_NAME=Nimble/Nimble' 44 s.pod_target_xcconfig = { 45 'APPLICATION_EXTENSION_API_ONLY' => 'YES', 46 'DEFINES_MODULE' => 'YES', 47 'ENABLE_BITCODE' => 'NO', 48 'ENABLE_TESTING_SEARCH_PATHS' => 'YES', 49 'OTHER_LDFLAGS' => '$(inherited) -weak-lXCTestSwiftSupport -Xlinker -no_application_extension', 50 'OTHER_SWIFT_FLAGS' => '$(inherited) -suppress-warnings', 51 } 52 53 s.cocoapods_version = '>= 1.4.0' 54 if s.respond_to?(:swift_versions) then 55 s.swift_versions = ['5.0'] 56 else 57 s.swift_version = '5.0' 58 end 59end 60