run 'pod install' from Xcode

Опубликовано: 03 Июль 2026
на канале: Ahmed Allam
820
21

How to run 'pod install' from Xcode without opening terminal?

copy this script to a file name it script.sh and follow the instructions in the video,
--------------------------------------------------------------------------------------------------------*NOTE: change << with 'real angle brackets' if this didn't work.
herre: osascript <<EOF
--------------------------------------------------------------------------------------------------------

#! /bin/bash
Script to open terminal and install cocoapods

pwd=$(pwd)
osascript <<EOF
tell app "Terminal"
if not (exists window 1) then reopen
activate
do script "cd $pwd; pod install" in window 1
end tell
EOF