fix: macos Support

This commit is contained in:
xkeyC
2025-11-19 11:53:45 +08:00
parent aaaee30368
commit 0983ebe21f
13 changed files with 184 additions and 177 deletions

View File

@@ -19,9 +19,10 @@ A new Flutter FFI plugin project.
# `../src/*` so that the C sources can be shared among all target platforms.
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.frameworks = 'SystemConfiguration'
s.frameworks = 'SystemConfiguration', 'CoreFoundation', 'CoreServices'
s.dependency 'FlutterMacOS'
s.platform = :osx, '10.11'
s.libraries = 'c++'
s.platform = :osx, '13.5'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
s.swift_version = '5.0'