Skip to content

Commit 1b1ec92

Browse files
committed
Fixed build with module headers
1 parent 8dbbf80 commit 1b1ec92

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

SQLite.swift.podspec

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ Pod::Spec.new do |s|
1515
s.social_media_url = 'https://twitter.com/stephencelis'
1616

1717
s.module_name = 'SQLite'
18-
s.ios.deployment_target = "8.0"
19-
s.tvos.deployment_target = "9.1"
20-
s.osx.deployment_target = "10.10"
21-
s.watchos.deployment_target = "2.2"
2218
s.default_subspec = 'standard'
23-
s.pod_target_xcconfig = {
24-
'SWIFT_VERSION' => '5',
25-
}
19+
s.swift_versions = ['4.2', '5']
20+
21+
22+
ios_deployment_target = '8.0'
23+
tvos_deployment_target = '9.1'
24+
osx_deployment_target = '10.10'
25+
watchos_deployment_target = '2.2'
26+
27+
s.ios.deployment_target = ios_deployment_target
28+
s.tvos.deployment_target = tvos_deployment_target
29+
s.osx.deployment_target = osx_deployment_target
30+
s.watchos.deployment_target = watchos_deployment_target
2631

2732
s.subspec 'standard' do |ss|
2833
ss.source_files = 'Sources/{SQLite,SQLiteObjc}/**/*.{c,h,m,swift}'
@@ -33,6 +38,9 @@ Pod::Spec.new do |s|
3338
ss.test_spec 'tests' do |test_spec|
3439
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'
3540
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
41+
test_spec.ios.deployment_target = ios_deployment_target
42+
test_spec.tvos.deployment_target = tvos_deployment_target
43+
test_spec.osx.deployment_target = osx_deployment_target
3644
end
3745
end
3846

@@ -49,6 +57,9 @@ Pod::Spec.new do |s|
4957
ss.test_spec 'tests' do |test_spec|
5058
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'
5159
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
60+
test_spec.ios.deployment_target = ios_deployment_target
61+
test_spec.tvos.deployment_target = tvos_deployment_target
62+
test_spec.osx.deployment_target = osx_deployment_target
5263
end
5364
end
5465

@@ -64,6 +75,9 @@ Pod::Spec.new do |s|
6475
ss.test_spec 'tests' do |test_spec|
6576
test_spec.resources = 'Tests/SQLiteTests/fixtures/*'
6677
test_spec.source_files = 'Tests/SQLiteTests/*.swift'
78+
test_spec.ios.deployment_target = ios_deployment_target
79+
test_spec.tvos.deployment_target = tvos_deployment_target
80+
test_spec.osx.deployment_target = osx_deployment_target
6781
end
6882
end
6983
end

Sources/SQLite/SQLite.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
FOUNDATION_EXPORT double SQLiteVersionNumber;
44
FOUNDATION_EXPORT const unsigned char SQLiteVersionString[];
55

6-
#import <SQLite/SQLiteObjc.h>
6+
#import "SQLiteObjc.h"

0 commit comments

Comments
 (0)