git log --pretty=format:"%h" | head -1 | awk '{print $1}' 可以放到xcode build setting post run script 里面设置版本号。 相关文章: 2022-12-23 2021-09-26 2022-12-23 2022-12-23 2022-01-22 2022-12-23 2022-12-23 2021-07-26