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

carthage build fails #196

Closed
smussell opened this issue Dec 20, 2015 · 10 comments
Closed

carthage build fails #196

smussell opened this issue Dec 20, 2015 · 10 comments

Comments

@smussell
Copy link

When I try to build using carthage I get the below error, even when I use this sample project https://github.com/ankurp/DollarCarthageApp.

*** Building scheme "Cent" in Dollar.xcworkspace
ld: warning: directory not found for option '-F/Users/sam/Library/Developer/Xcode/DerivedData/Dollar-cnpzzqqzcseuvucrfghsizcweovz/Build/Products/Debug-iphoneos'
Failed to write to /Users/sam/Desktop/DollarCarthageApp/Carthage/Checkouts/Dollar.swift/Carthage/Build/Mac/Cent.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Cent.framework” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/sam/Library/Developer/Xcode/DerivedData/Dollar-csiymmxhuzchxpaltnrmioifhnrn/Build/Products/Release-iphoneos/Cent.framework, NSUnderlyingError=0x7faae0e4bc40 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I'm using the latest carthage 0.11 and Xcode 7.2. Any help would be appreciated, thanks.

@ankurp
Copy link
Owner

ankurp commented Dec 20, 2015

Taking a look

@ankurp
Copy link
Owner

ankurp commented Dec 21, 2015

Problem with Carthage is that it builds the first scheme and we cannot specify a scheme to build. I will need to split the project up into two different repos to make this work.

@smussell
Copy link
Author

Thanks for looking into it quickly. I ended up using including as a submodule and it's working fine for now

@tangzhen
Copy link

Same issue, any update for this?

@ankurp
Copy link
Owner

ankurp commented Feb 14, 2016

@smussell @tangzhen This is fixed now in version 5.0.0. I had to separate out Dollar and Cent into their own repos. Here is the sample project which works now and you can take a look at https://github.com/ankurp/DollarCarthageApp/

Below is what the Cartfile will look now

github "ankurp/Dollar" ~> 5.0.0
github "ankurp/Cent" ~> 5.0.0

@ankurp ankurp closed this as completed Feb 14, 2016
@brandonminch
Copy link
Contributor

I'm currently seeing this issue using Carthage 0.16.2 and Xcode 7.3

*** Building scheme "Cent" in Cent.xcodeproj
Failed to write to /Users/brandonminch/Development/iOS/DollarCarthageApp/Carthage/Build/Mac/Cent.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Cent.framework” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/brandonminch/Library/Developer/Xcode/DerivedData/Cent-baistomgtfsiojdzavuqnbvpyhqe/Build/Products/Release-iphoneos/Cent.framework, NSUnderlyingError=0x7fdab870d3f0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

@brandonminch
Copy link
Contributor

Not sure what the exact fix was, but I was able to resolve the issue by deleting DerivedData, cleaning the project and running carthage update Dollar --platform "iOS"

@ankurp
Copy link
Owner

ankurp commented Apr 19, 2016

I think the DerivedData is the issue.

@wafisher
Copy link

I had the same problem. Carthage is looking in

Carthage/Checkouts/Dollar/DerivedData/Dollar/Build/Products/Release-iphoneos/Dollar.framework

but the build is actually in

Carthage/Checkouts/Dollar/DerivedData/Dollar/Build/Products/Release/Dollar.framework.

@brandonminch's fix worked.

@aral
Copy link

aral commented Aug 29, 2016

Interesting, I just got this for a universal framework that supports both iOS and Mac.

carthage update --platform iOS,Mac

Didn’t work.

Workaround:

Run Carthage twice:
carthage update --platform iOS
carthage update --platform Mac

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

No branches or pull requests

6 participants