lib/cocoapods-framework/xbuilder.rb in cocoapods-xcframework-0.1.1 vs lib/cocoapods-framework/xbuilder.rb in cocoapods-xcframework-0.2.0
- old
+ new
@@ -157,10 +157,11 @@
end
outputs_xcframework target_dir
outputs_bundle target_dir
new_spec_hash = generic_new_podspec_hash @spec
new_spec_hash[:vendored_frameworks] = "#{@spec.name}.xcframework"
+ new_spec_hash = fix_header_file new_spec_hash, "#{target_dir}/#{@spec.name}.xcframework"
find_bundles(target_dir).each do |plat, value|
if new_spec_hash[plat]
new_spec_hash[plat]["resource_bundles"] = value
else
new_spec_hash[plat] = {
@@ -223,9 +224,10 @@
podspec_path = "#{podspec_path}.json"
end
podspec = Pod::Specification.from_file podspec_path
new_spec_hash = generic_new_podspec_hash podspec
new_spec_hash[:vendored_frameworks] = "#{podspec.name}.xcframework"
+ new_spec_hash = fix_header_file new_spec_hash, "#{target_dir}/#{@spec.name}.xcframework"
find_bundles("#{target_dir}/#{podspec.name}").each do |plat, value|
if new_spec_hash[plat]
new_spec_hash[plat]["resource_bundles"] = value
else
new_spec_hash[plat] = {