0

I have added following as pre integration script in Xcode bot to install pods in gitignore

pod install

The script returns following message after integration

pod: command not found

1 Answers1

0

You will need to add the path to pod install. For example, /usr/local/bin/pod

You can add this as a Add Pre-Integration Triggers when you edit your Xcode Server Bot.

#!/bin/sh

# cd to where your Podfile is
cd ${XCS_PRIMARY_REPO_DIR}

# add to the path, or explicitly add the path to your `pod` call
export PATH=/usr/local/bin:$PATH
pod install

wait

Notes I found on wait

The wait() function suspends execution of its calling thread until status information is available for a child process or a signal is received.

RobLabs
  • 2,257
  • 2
  • 18
  • 20
  • Notes I've been gathering on my experiences with XCS: github.com/roblabs/xcode-continuous-integration – RobLabs Oct 04 '20 at 17:59