robb / Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
Other
7.34k stars 525 forks source link

Carthage build fails (Error Domain=NSCocoaErrorDomain Code=260) #286

Closed ptc-amulloni closed 6 years ago

ptc-amulloni commented 6 years ago

Building using Carthage 0.29.0 (latest). The issue is repeatable with any Carthage version newer than 0.24.0. With Carthage 0.24.0 the issue is not present.

Command: carthage update --platform iOS

Cartfile: github "robb/Cartography"

Error: Failed to write to /***/Carthage/Build/iOS/Cartography.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Cartography.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///***/Carthage/Checkouts/Cartography/build/ArchiveIntermediates/Cartography-iOS/BuildProductsPath/Release-iphoneos/Cartography.framework, NSFilePath=/***/Carthage/Checkouts/Cartography/build/ArchiveIntermediates/Cartography-iOS/BuildProductsPath/Release-iphoneos/Cartography.framework, NSUnderlyingError=0x7fb9d3354440 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I already looked at the following issues:

but they do not seem to apply because there is no SYMROOT build settings in the XCode project.

ptc-amulloni commented 6 years ago

Closing this issue as I believe it is actually due to environment settings on my machine. I can reproduce it on a colleague's machine working on a same project, but not on another colleague's who's working on a different project. It is likely due to some settings in our project's build environment. I will get back here and report any finding, in case somebody has the same problem.

AlessandroMulloni commented 6 years ago

I just found a fix for this issue, which was a Carthage+XCode issue and not specifically related to Cartography. It is a rather hidden XCode setting. Please refer to my latest comment on the thread here: https://github.com/Carthage/Carthage/issues/2220