def get_attr_by(path,name)
`"/usr/libexec/PlistBuddy -c 'print #{name}' #{path}"`
end
这段代码报错
sh: /usr/libexec/PlistBuddy -c 'print CFBundleName' test/Payload/mysysy.app/Info.plist: No such file or directory
而下面是正常的
def get_attr_by(path,name)
cmd = "/usr/libexec/PlistBuddy -c 'print #{name}' #{path}"
`#{cmd}`
end
百思不得,求各位帮忙给个解释