lib/cocoapods-tj/helpers/spec_creator.rb in cocoapods-tj-1.0.3 vs lib/cocoapods-tj/helpers/spec_creator.rb in cocoapods-tj-1.0.4

- old
+ new

@@ -74,12 +74,12 @@ # Source Location @spec.source = binary_source # Source Code - @spec.source_files = framework_contents('Headers/*') - @spec.public_header_files = framework_contents('Headers/*') + @spec.source_files = '*.h' + @spec.public_header_files = '*.h' # Unused for binary spec_hash = @spec.to_hash # spec_hash.delete('license') spec_hash.delete('resource_bundles') @@ -122,26 +122,26 @@ def code_spec_consumer(_platform = :ios) code_spec.consumer(:ios) end def framework_contents(name) - ["#{code_spec.root.name}.framework", "#{code_spec.root.name}.framework/Versions/A"].map { |path| "#{path}/#{name}" } + ["#{code_spec.root.name}.framework"].map { |path| "#{path}/#{name}" } end def framework_contents_root() - ["#{code_spec.root.name}.framework", "#{code_spec.root.name}.framework/Versions/A"] + ["#{code_spec.root.name}.framework"] end def binary_source_files { http: format(CBin.config.binary_download_url, code_spec.root.name, code_spec.version), type: CBin.config.download_file_type } end def binary_source_files - "bin_#{code_spec.name}_#{code_spec.version}/Headers/*" + "bin_#{code_spec.name}_#{code_spec.version}/*" end def binary_public_header_files - "bin_#{code_spec.name}_#{code_spec.version}/Headers/*.h" + "bin_#{code_spec.name}_#{code_spec.version}/*.h" end def binary_vendored_libraries "bin_#{code_spec.name}_#{code_spec.version}/*.a" end