Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Building Appledoc with xcodebuild but without sudo #330

Closed
Cocoanetics opened this Issue · 3 comments

2 participants

@Cocoanetics

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

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.

@Satish1729

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

@Cocoanetics

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.