I setup a Xcode6 server and bots following the iOS document.
The bot is connected to the Bitbucket git with provided username and password. I didn't have any problem syncing down the latest code.
Then I setup the following trigger script for the "Before Integration" like the following:
cd /Users/seagull/workspace/develop ---> Source root
pod install
Then this fails with error messages such as _xcsbuildd doesn't have a write permission to "mkdir Pods" in the trigger section of the log:
I suppose xcode bot is using the linux user _xcsbuildd (which is the xcode bot). However, since the code is checked out with the current user, _xcsbuildd doesn't have a write permission to create "Pods" directory or "Podfile.lock" or to add Pods.xcproject file within the project folder.
I also used 'chmod' to give all-user write permission to all folders, but Xcode gets angry saying that I shouldn't unlock the write permission. How should I address this permission issues? Is there anyway I can force xcode bot to acts as current user? not _xcsbuildd? (I identified _xcsbuildd as the current user by adding 'whoami' in the trigger script for testing).