Xcode快捷键直接打开Terminal并执行pod Install

来源:
https://www.jianshu.com/p/48da1185d212
https://medium.com/swlh/pod-install-hook-up-with-xcode-ide-e215da206952
1、打开Terminal的脚本

#!/bin/sh

if [ -n "$XcodeProjectPath" ]; then
  open -a Terminal "$XcodeProjectPath"/..
else
  open -a Terminal "$XcodeWorkspacePath"/..
fi

2、打开Terminal并执行Pod Install脚本

#!/bin/sh

#  Pod-Install.sh
#  
#
#  Created by Nikunj Modi on 26/09/20.
#  
osascript <

你可能感兴趣的:(Xcode快捷键直接打开Terminal并执行pod Install)