xcodebuild权限失败

时间:2016-05-05 14:22:13

标签: ios xcode xcodebuild

我正在构建一个iOS框架,其中包含一个工作空间中的多个项目,其中xcodebuild命令始终有效且未更改。我不知道是什么导致这个错误开始发生,但这是我得到的工作区的几乎每个模块的输出(模块的名称为了机密性而改变):

2016-05-05 15:20:27.368 xcodebuild[8728:391661]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-10150/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/DependencyGraph/XCDependencyGraph.mm:688
Details:  unable to write dependency graph: You don’t have permission to save the file “Module1.build” in the folder “Release-iphoneos”.
Object:   <XCDependencyGraph>
Method:   +loadOrCreateInBuildDirectory:withTargetBuildContext:withBasePath:
Thread:   <NSThread: 0x7f8ea072b2b0>{number = 11, name = (null)}

在日志结束时,我也看到了这一点:

Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2016-05-05 15:20:27.440 xcodebuild[8728:391665] Unable to create containing folder at '/Users/david/Dev/project/platform/ios/build/Build/Intermediates' for the shared cache directory.
2016-05-05 15:20:27.440 xcodebuild[8728:391665] Unable to create the shared cache directory at '/Users/david/Dev/project/platform/ios/build/Build/Intermediates/PrecompiledHeaders' with read/write permissions only for the currently logged in user.
2016-05-05 15:20:27.531 xcodebuild[8728:391658] Error saving log: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSFilePath=/Users/david/Dev/project/platform/ios/build/Logs/Build/266D7DA5-68DD-449D-BA0A-FD0223CA1094.xcactivitylog, NSLocalizedDescription=No such file or directory} | User info: {
NSFilePath = "/Users/david/Dev/project/platform/ios/build/Logs/Build/266D7DA5-68DD-449D-BA0A-FD0223CA1094.xcactivitylog";
NSLocalizedDescription = "No such file or directory";
}
** CLEAN FAILED **

** BUILD FAILED **

2016-05-05 15:20:27.570 xcodebuild[8728:391658] Error saving log: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={NSFilePath=/Users/david/Dev/project/platform/ios/build/Logs/Build/4D7E0CB2-5C94-4219-A666-0FB85DF2F158.xcactivitylog, NSLocalizedDescription=No such file or directory} | User info: {
NSFilePath = "/Users/david/Dev/project/platform/ios/build/Logs/Build/4D7E0CB2-5C94-4219-A666-0FB85DF2F158.xcactivitylog";
NSLocalizedDescription = "No such file or directory";
}

我使用的命令是:

xcodebuild -workspace Project.xcworkspace -scheme Framework -configuration Release clean build -derivedDataPath /Users/david/Dev/project/platform/ios/build | xcpretty

运行xcodebuild -version会产生这样的结果:

Xcode 7.3.1 
Build version 7D1014

提前感谢您的帮助。

0 个答案:

没有答案