Closed marcelofabri closed 8 years ago
file.real_path is a Pathname, while plist_path is a String with a relative path (that's why the File.expand_path is needed.
file.real_path
Pathname
plist_path
String
File.expand_path
Without this change, file_ref is always nil, so the files is added repeatedly to the Pods group (once each pod install).
file_ref
nil
Pods
pod install
file.real_path
is aPathname
, whileplist_path
is aString
with a relative path (that's why theFile.expand_path
is needed.Without this change,
file_ref
is alwaysnil
, so the files is added repeatedly to thePods
group (once eachpod install
).