lib/cocoapods-framework/xbuilder.rb in cocoapods-xcframework-0.0.6 vs lib/cocoapods-framework/xbuilder.rb in cocoapods-xcframework-0.0.7
- old
+ new
@@ -109,11 +109,10 @@
File.open("#{target_dir}/#{@spec.name}.podspec.json",'wb+') do |f|
f.write(spec_json)
end
UI.puts "result export at :#{target_dir}"
target_dir
- exit -1
end
def find_bundles target_dir
bundle_root = "#{target_dir}/bundle/"
bundle_name = "/#{@spec.name}.bundle"
@@ -122,10 +121,9 @@
Pathname.glob(pattern).each do |bundle|
bundle_relative_path = bundle.to_s.gsub(bundle_root, "")
plat = bundle_relative_path.gsub(bundle_name,"")
result[plat] = "bundle/" + bundle_relative_path
end
- puts result
result
end
def outputs_xcframework target_dir
command = "cp -rp #{@outputs[:xcframework]} #{target_dir} 2>&1"