我正在尝试在linux上使用Foundation构建一个命令行工具。 但是我遇到了一个错误,因为我无法找到解决方案:
diff = 0
token = self.visits.where(created_at: self.statistic_range).pluck(:token).uniq
token.each do |tok|
visits = self.visits.where(created_at: self.statistic_range, token: tok).order('updated_at asc')
diff += (visits.last.created_at - visits.first.created_at).round
end
return diff / token.size
有人知道如何构建一个swift项目静态吗?