Skip to content

Commit

Permalink
Fix CocoaPods podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchang-bird committed Jan 7, 2022
1 parent 4aa6388 commit c487dd4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
33 changes: 22 additions & 11 deletions MockingbirdFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,34 @@ Pod::Spec.new do |s|
s.name = 'MockingbirdFramework'
s.module_name = 'Mockingbird'
s.version = `/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' Sources/MockingbirdFramework/Info.plist`
s.summary = 'A convenient mocking framework for Swift.'
s.summary = 'A Swifty mocking framework for Swift and Objective-C.'
s.homepage = 'https://github.com/birdrides/mockingbird'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.author = { 'Andrew Chang' => 'typealiased@gmail.com' }
s.source = { :git => s.homepage + '.git', :tag => s.version }
s.source_files = 'Sources/MockingbirdFramework/**/*.{swift,h,m,mm}'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '7.4'
s.frameworks = 'XCTest'
s.user_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(PLATFORM_DIR)/Developer/Library/Frameworks' }
s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO', 'ENABLE_TESTABILITY' => 'YES' }
s.swift_version = '5.0'
s.preserve_paths = [ 'README.md',
'LICENSE.md',
'mockingbird',
'Scripts/Resources/CodesigningRequirements/*',
'Sources/MockingbirdFramework/Info.plist' ]
s.preserve_paths = [
'README.md',
'LICENSE.md',
'mockingbird',
'Scripts/Resources/CodesigningRequirements/*',
'Sources/MockingbirdFramework/Info.plist',
]

s.subspec 'Common' do |common|
common.source_files = 'Sources/MockingbirdCommon/**/*.swift'
end

s.subspec 'Core' do |core|
core.dependency 'MockingbirdFramework/Common'
core.source_files = 'Sources/MockingbirdFramework/**/*.{swift,h,m,mm}'
core.exclude_files = 'Sources/MockingbirdFramework/Utilities/ExportedModules.swift'
core.frameworks = 'XCTest'
core.user_target_xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(PLATFORM_DIR)/Developer/Library/Frameworks' }
core.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO', 'ENABLE_TESTABILITY' => 'YES' }
end
end
1 change: 0 additions & 1 deletion Sources/MockingbirdFramework/Utilities/StackTrace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

import Foundation
import MockingbirdCommon

struct StackTrace {
let callStackSymbols: [String]
Expand Down

0 comments on commit c487dd4

Please sign in to comment.