def find_podspec
Pathname.pwd.children.each do |child|
puts child
if File.file?(child)
if child.extname == '.podspec'
name = File.basename(child)
unless name.include?("binary-template")
return name
end
end
end
end
end
当 pod bin auto执行所在目录没有 podspec 文件时返回了一个目录文件数组,造成 #79 错误
find_podspec
返回逻辑原来的逻辑中
当
pod bin auto
执行所在目录没有 podspec 文件时返回了一个目录文件数组,造成 #79 错误