From f7f3eb1addbe054dd949ad80380f0968d26c16cc Mon Sep 17 00:00:00 2001 From: Hongzhi Zhao Date: Thu, 7 Dec 2017 15:59:04 +0800 Subject: [PATCH 1/2] Fix issue #187 --- lib/cocoapods-packager/builder.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cocoapods-packager/builder.rb b/lib/cocoapods-packager/builder.rb index ba3b910..f52e57c 100755 --- a/lib/cocoapods-packager/builder.rb +++ b/lib/cocoapods-packager/builder.rb @@ -249,7 +249,8 @@ def dependency_count def expand_paths(path_specs) path_specs.map do |path_spec| - Dir.glob(File.join(@source_dir, path_spec)) + source = Dir.pwd + '/Pods/' + @spec.name.to_s + Dir.glob(File.join(source, path_spec)) end end From 7993eda444cbabf118a24595c639e9c9bae6622b Mon Sep 17 00:00:00 2001 From: Hongzhi Zhao Date: Thu, 7 Dec 2017 20:37:05 +0800 Subject: [PATCH 2/2] typo --- lib/cocoapods-packager/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cocoapods-packager/builder.rb b/lib/cocoapods-packager/builder.rb index f52e57c..4f161ba 100755 --- a/lib/cocoapods-packager/builder.rb +++ b/lib/cocoapods-packager/builder.rb @@ -250,7 +250,7 @@ def dependency_count def expand_paths(path_specs) path_specs.map do |path_spec| source = Dir.pwd + '/Pods/' + @spec.name.to_s - Dir.glob(File.join(source, path_spec)) + Dir.glob(File.join(source, path_spec)) end end