Skip to content

Commit f7106da

Browse files
fix for cocoapods projects
1 parent 8ab4f9c commit f7106da

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/capacitor/PowersyncCapacitor.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
1919
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
2020
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
2121
s.dependency "SQLCipher", "~> 4.0"
22-
s.public_header_files = 'ios/Sources/CPowerSyncPlugin/include/*.h'
22+
s.public_header_files = 'ios/Sources/CPowerSyncCore/include/*.h'
2323
s.ios.deployment_target = '15.0'
2424
s.dependency 'Capacitor'
2525
s.swift_version = '5.1'

packages/capacitor/ios/Sources/PowerSyncPlugin/PowerSync.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import Foundation
2+
3+
#if canImport(CPowerSyncCore)
24
import CPowerSyncCore
5+
#endif
36

47
@objc public class PowerSync: NSObject {
58
@objc public func registerCore() -> Int32 {

0 commit comments

Comments
 (0)