Skip to content

Building Appledoc with xcodebuild but without sudo #330

odrobnik opened this Issue Feb 27, 2013 · 3 comments

2 participants


What is it in the Xcode project that requires xcodebuild to be run with sudo?

I am trying to dynamically create appledoc for use by a build server slave user which shouldn't require sudo.

What is necessary for this to work:

xcodebuild -target appledoc -configuration Release install

Presently this results in this output if not run as root:

The following build commands failed:
CompileC build/ Application/GBCommentComponentsProvider.m normal x86_64 objective-c
CompileC build/ Processing/GBCommentsProcessor.m normal x86_64 objective-c
CompileC build/ Model/GBComment.m normal x86_64 objective-c
CompileC build/ Common/ThirdParty/GRMustache/GRMustacheCompiler.m normal x86_64 objective-c

My mistake. If you first run build as root via sudo then you have left-over .o files that are owned by root which the normal user build cannot overwrite.

@odrobnik odrobnik closed this Feb 27, 2013

So, What will be the fix for this? I have the same issue, please help me in resolving this. @Cocoanetics

odrobnik commented Nov 7, 2013

Just clear the derived data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.