Skip to content

Building Appledoc with xcodebuild but without sudo #330

Closed
odrobnik opened this Issue Feb 27, 2013 · 3 comments

2 participants

@odrobnik

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/appledoc.build/Release/appledoc.build/Objects-normal/x86_64/GBCommentComponentsProvider.o Application/GBCommentComponentsProvider.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/appledoc.build/Release/appledoc.build/Objects-normal/x86_64/GBCommentsProcessor.o Processing/GBCommentsProcessor.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/appledoc.build/Release/appledoc.build/Objects-normal/x86_64/GBComment.o Model/GBComment.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/appledoc.build/Release/appledoc.build/Objects-normal/x86_64/GRMustacheCompiler.o Common/ThirdParty/GRMustache/GRMustacheCompiler.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
@odrobnik

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
@Satish1729

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

@odrobnik
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.