Xcode CI and cocoapods private repo

瘦欲@ 提交于 2020-01-06 01:45:51

问题


I've been trying to setup OSX server to use Xcode CI. My project uses cocoapods and a private repo. I've been following this tutorial: http://papaanton.com/setting-up-xcode-6-and-apple-server-4-0-for-continues-integration-with-cocoapods/

But when I login as the _xcsbuildd user and run the command to add the private repo I get the following error message

fatal: could not create work tree dir '<repo name>': permission denied

I don't have much experience with users and command line tools. I've seen many comments online saying people need to change permissions to get it to work. But I have no idea what I need to change and where.

Can anyone tell me where / what / how I need to modify to give this user access to complete this process.


回答1:


Just found the answer. Had no idea where cocoapods was storing these repos. I opened finder. Cmd + shift + g

typed in ~/.cocoapods/repos

right click on the repos folder and give "everyone" read & write access to the folder. All good now, CI working completely



来源:https://stackoverflow.com/questions/32136511/xcode-ci-and-cocoapods-private-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!