Linux上的Swift:-static-stdlib无法找到-lFoundation

时间:2017-01-24 17:00:13

标签: linux swift foundation

我正在尝试在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项目静态吗?

0 个答案:

没有答案