lib/cocoapods/app_group/setup.rb in cocoapods-app_group-0.3.0 vs lib/cocoapods/app_group/setup.rb in cocoapods-app_group-0.4.0
- old
+ new
@@ -21,17 +21,17 @@
pod_target = podfile.root_target_definitions.flat_map(&:children).find do |target|
target.label == "Pods-#{target}"
end
if pod_target
- pod_target.store_pod 'AppGroup', path: pod_path.to_path
+ pod_target.store_pod 'AppGroup', path: pod_path.relative_path_from(Pathname.pwd).to_path
else
Pod::UI.puts "Could not find a target named '#{target}' in your Podfile. Stopping keys".red
end
end
else
# otherwise let it go in global
- podfile.pod 'AppGroup', path: pod_path.to_path
+ podfile.pod 'AppGroup', path: pod_path.relative_path_from(Pathname.pwd).to_path
end
end
def root
Pod::Config.instance.installation_root