Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap the xmlversion-device.h for Xcode14 #3

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Libxml2Module.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Pod::Spec.new do |s|
s.license = 'MIT'
s.author = { "gtarasov" => "gleb34@gmail.com" }
s.source = { git: 'https://github.com/ctsf/Libxml2Module.git', tag: "0.0.5" }
s.platform = :ios, '8.0'
s.platform = :ios, '11.0'

s.libraries = 'xml2'
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/Libxml2Module/headers' }
Expand All @@ -15,8 +15,9 @@ Pod::Spec.new do |s|
s.module_map = 'Libxml2.modulemap'
s.module_name = 'Libxml2'

s.source_files = 'dummy-source.m', 'headers/*.h'
s.public_header_files = 'headers/*.h'
s.source_files = 'dummy-source.m', 'headers/*.h', 'xmlversion-device.h'
s.public_header_files = 'headers/*.h', 'xmlversion-device.h'
s.exclude_files = 'headers/xmlversion-device.h'

s.prepare_command = <<-CMD
ruby module_parser.rb > Libxml2.modulemap
Expand Down
1 change: 1 addition & 0 deletions module_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def process_folder(headers_folder, local_folder, suffix)

if fname == "DOCBparser.h" then next end #deprecated file
if fname == "module.modulemap" then next end #not a header
if fname == "xmlversion-device.h" then next end #to change with other content

local = fname.sub(/\.h/, "-#{suffix}.h")
imports += " header \"#{local}\"\n"
Expand Down
Loading