Skip to content

Commit 935b2ac

Browse files
committed
Podspec v1.8.1, link correct frameworks depending on subspec
1 parent 0c74796 commit 935b2ac

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

NSLogger.podspec

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = 'NSLogger'
3-
s.version = '1.8.0'
3+
s.version = '1.8.1'
44
s.license = 'BSD'
55
s.summary = 'A modern, flexible logging tool.'
66
s.homepage = 'https://github.com/fpillet/NSLogger'
77
s.author = { 'Florent Pillet' => '[email protected]' }
8-
s.source = { :git => 'https://github.com/fpillet/NSLogger.git', :tag => 'v1.8.0' }
8+
s.source = { :git => 'https://github.com/fpillet/NSLogger.git', :tag => 'v1.8.1' }
99
s.screenshot = "https://github.com/fpillet/NSLogger/raw/master/Screenshots/mainwindow.png"
1010

1111
s.description = 'NSLogger is a high perfomance logging utility which displays traces emitted by ' \
@@ -18,8 +18,6 @@ Pod::Spec.new do |s|
1818
s.osx.deployment_target = '10.10'
1919
s.tvos.deployment_target = '9.0'
2020

21-
s.ios.frameworks = 'CFNetwork', 'SystemConfiguration'
22-
s.osx.frameworks = 'CFNetwork', 'SystemConfiguration', 'CoreServices'
2321
s.requires_arc = false
2422

2523
s.default_subspec = 'Standard'
@@ -28,8 +26,8 @@ Pod::Spec.new do |s|
2826
# from the final build
2927
s.subspec 'Standard' do |standard|
3028
standard.source_files = 'Client/iOS/*.{h,m,swift}'
31-
standard.ios.frameworks = 'UIKit'
32-
standard.osx.frameworks = 'AppKit'
29+
standard.ios.frameworks = 'CFNetwork', 'SystemConfiguration', 'UIKit'
30+
standard.osx.frameworks = 'CFNetwork', 'SystemConfiguration', 'CoreServices', 'AppKit'
3331
standard.xcconfig = {
3432
'GCC_PREPROCESSOR_DEFINITIONS' => '${inherited} NSLOGGER_WAS_HERE=1 NSLOGGER_BUILD_USERNAME="${USER}"'
3533
}
@@ -43,8 +41,8 @@ Pod::Spec.new do |s|
4341
# NSLogger functions and use them if present.
4442
s.subspec 'NoStrip' do |nostrip|
4543
nostrip.source_files = 'Client/iOS/*.{h,m,swift}'
46-
nostrip.ios.frameworks = 'UIKit'
47-
nostrip.osx.frameworks = 'AppKit'
44+
nostrip.ios.frameworks = 'CFNetwork', 'SystemConfiguration', 'UIKit'
45+
nostrip.osx.frameworks = 'CFNetwork', 'SystemConfiguration', 'CoreServices', 'AppKit'
4846
nostrip.xcconfig = {
4947
'GCC_PREPROCESSOR_DEFINITIONS' => '${inherited} NSLOGGER_WAS_HERE=1 NSLOGGER_BUILD_USERNAME="${USER}" NSLOGGER_ALLOW_NOSTRIP=1'
5048
}
@@ -56,6 +54,8 @@ Pod::Spec.new do |s|
5654
# The 'NoSwift' subspec is the legacy ObjC only version: no Swift code will be added to your project.
5755
s.subspec 'NoSwift' do |noswift|
5856
noswift.source_files = 'Client/iOS/*.{h,m}'
57+
noswift.ios.frameworks = 'CFNetwork', 'SystemConfiguration'
58+
noswift.osx.frameworks = 'CFNetwork', 'SystemConfiguration', 'CoreServices'
5959
noswift.xcconfig = {
6060
'GCC_PREPROCESSOR_DEFINITIONS' => '${inherited} NSLOGGER_WAS_HERE=1 NSLOGGER_BUILD_USERNAME="${USER}"'
6161
}

0 commit comments

Comments
 (0)