Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build via Carthage #31

Closed
Davtyanag opened this issue Apr 29, 2018 · 6 comments
Closed

Can't build via Carthage #31

Davtyanag opened this issue Apr 29, 2018 · 6 comments
Labels

Comments

@Davtyanag
Copy link

Xcode Version 9.3 (9E145)
Swift 4.1
Command which I use: carthage bootstrap --platform ios --no-use-binaries
As far as I know this issue is connected with New Xcode Build system.

@jessegrosjean
Copy link

I see the same problem on Xcode Version 9.4 (9F1027a) this error:

*** Building scheme "Differ" in Differ.xcodeproj
Failed to write to /Users/jessegrosjean/Documents/github/DocumentBasedAppWithFileBrowser/Workspace/Carthage/Build/watchOS/Differ.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Differ.framework” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/jessegrosjean/Library/Developer/Xcode/DerivedData/Differ-ftdwmabnorqfwechltjosatxjrlz/Build/Products/Release-watchos/Differ.framework, NSUnderlyingError=0x7f813997cb50 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

The Carthage checkout seems to build OK, when I open the checked out Differ project directly in Xcode and build.

@tonyarnold tonyarnold added the Bug label May 30, 2018
@tonyarnold
Copy link
Owner

Hi folks, sorry about this. I've just done a clean test with Xcode 9.4 (9F1027a) and it worked fine using the following command:

carthage bootstrap --no-use-binaries

@Davtyanag can you provide the actual error/log output you're seeing?

@jessegrosjean what command are you using?

@jessegrosjean
Copy link

I was using the command carthage update, but I get this same/similar error when using carthage bootstrap --no-use-binaries:

carthage bootstrap --no-use-binaries
*** No Cartfile.resolved found, updating dependencies
*** Fetching Differ
*** Checking out Differ at "1.2.3"
*** xcodebuild output can be found in /var/folders/kl/mq456jxs2hl13xn41v0pl9qh0000gn/T/carthage-xcodebuild.Cg1yB5.log
*** Building scheme "Differ" in Differ.xcodeproj
Failed to write to /Users/jessegrosjean/Desktop/JesseTest/Carthage/Checkouts/Differ/Carthage/Build/watchOS/Differ.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Differ.framework” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/jessegrosjean/Library/Developer/Xcode/DerivedData/Differ-gaoqperawiwhqmbdudvzcytmjvdy/Build/Products/Release-watchos/Differ.framework, NSUnderlyingError=0x7fedf5513ac0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I'm not sure what might be different. I'm building other Carthage dependencies successfully.

Here's a test project that used to create the above error:

JesseTest.zip

@tonyarnold
Copy link
Owner

tonyarnold commented May 31, 2018

Hrm, that worked fine for me.

What version of Carthage are you using? I'm on 0.29.0. You can get at it with carthage version.

@jessegrosjean
Copy link

Sorry... that was the issue. I was on 0.17.2. I should have checked. Carthage has always just seemed to work, forgot all about updating. Anyway, thanks very much for your help.

@tonyarnold
Copy link
Owner

No problems, glad we got to the bottom of the troubles! Thanks for being patient 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants