从终端构建项目会导致编译器错误

Kri*_*nan 5 xcode build-process swift

我使用Fastlane来自动构建.

如果我尝试在termainl中使用fastlane的健身房或Xcode构建命令,一些swift文件不会编译

我得到的编译器错误是这样的:

以下构建命令失败:CompileSwift正常arm64***.swift CompileSwift正常arm64 SOMEFILE.swift CompileSwift正常arm64 XXX.swift

CompileSwiftSources正常arm64 com.apple.xcode.tools.swift.compiler

当我使用xcode存档构建时,我不会遇到任何问题.

版本: Xcode 6.3.

更多日志:

xcodebuild [51537:1105705] DVTAssertions:/SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-7709/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/SpecificationTypes/BuiltInSpecifications/Compilers/XCGccMakefileDependencies.m:77中的警告:无法加载依赖项输出内容`/Users/krishnan/Library/Developer/Xcode/DerivedData/Business-hcbjqydpndvafhhfzchylvezaqnw/Build/Intermediates/ArchiveIntermediates/Fastlane-BusinessTest/IntermediateBuildFilesPath/Business.build/Release-iphoneos/Fastlane-BusinessTest.build/Objects-normal/arm64/ CustomTableViewCell.d'.错误:错误Domain = NSCocoaErrorDomain Code = 260"无法打开文件"CustomTableViewCell.d",因为没有这样的文件." UserInfo = 0x7f8c2b375f50 {NSFilePath =/Users/krishnan/Library/Developer/Xcode/DerivedData/Business-hcbjqydpndvafhhfzchylvezaqnw/Build/Intermediates/ArchiveIntermediates/Fastlane-BusinessTest/IntermediateBuildFilesPath/Business.build/Release-iphoneos/Fastlane-BusinessTest.build/Objects -normal/arm64/CustomTableViewCell.d,NSUnderlyingError = 0x7f8c2b31c1e0"操作无法完成.没有这样的文件或目录"}.用户信息:{NSFilePath ="/ Users/krishnan/Library/Developer/Xcode/DerivedData/Business-hcbjqydpndvafhhfzchylvezaqnw/Build/Intermediates/ArchiveIntermediates/Fastlane-BusinessTest/IntermediateBuildFilesPath/Business.build/Release-iphoneos/Fastlane-BusinessTest.build/对象 - 正常/ arm64/CustomTableViewCell.d"; NSUnderlyingError ="错误域= NSPOSIXErrorDomain代码= 2 \"操作无法完成.没有相应的文件和目录\""; }.