lib/cocoapods-packager/pod_utils.rb in cocoapods-packager-qcloud-1.5.13 vs lib/cocoapods-packager/pod_utils.rb in cocoapods-packager-qcloud-1.5.14
- old
+ new
@@ -45,11 +45,10 @@
if spec_path
options[:path] = Pathname(spec_path).dirname.to_path
else
options[:path] = '.'
end
- puts "path is #{@path}"
options[:subspecs] = subspecs if subspecs
dependencies = @allLocalDependencies
podfile = Pod::Podfile.new do
sources.each { |s| source s }
platform(platform_name, deployment_target)
@@ -105,19 +104,17 @@
set.specification.root
end
def spec_with_local_name(name)
m = @moduleCache.moduleByName(name)
- puts "find module #{m} #{@moduleCache}"
if m.nil?
return nil
end
@localSourcesBox = m
specPath = "#{m.path}/#{m.name}.podspec"
spec = Specification.from_file(specPath)
@path = specPath
- puts "SPEC #{spec} PATH: #{specPath}"
return spec
end
def spec_with_path(path)
return if path.nil? || !Pathname.new(path).exist?
@@ -153,13 +150,11 @@
dynamic_target = build_dynamic_target(dynamic_sandbox, static_installer)
# 2. Build a new xcodeproj in the dynamic_sandbox with only the spec pod as a target.
project = prepare_pods_project(dynamic_sandbox, dynamic_target.name, static_installer)
- puts "复制源文件 #{project}"
# 3. Copy the source directory for the dynamic framework from the static sandbox.
copy_dynamic_target(static_sandbox, dynamic_target, dynamic_sandbox)
- puts "复制源文件成功"
# 4. Copy the supporting files for the dynamic framework from the static sandbox.
copy_dynamic_supporting_files(static_sandbox, dynamic_target, dynamic_sandbox)
# 5. Update the file accecssors.