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

Installing with Carthage for Mac fails #70

Closed
georgemp opened this issue Feb 19, 2018 · 6 comments
Closed

Installing with Carthage for Mac fails #70

georgemp opened this issue Feb 19, 2018 · 6 comments

Comments

@georgemp
Copy link

Please help prevent duplicate issues before submitting a new one:

  • [Y ] I've searched other open/closed issues for duplicates before opening up this new issue.

Report

I tried installing Down using Carthage 0.28.0. However, it errors out with the following

Failed to write to /Users/georgemp/TestProject/Carthage/Build/Mac/Down.framework: Error Domain=NSCocoaErrorDomain Code=260 "The file “Down.framework” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Users/georgemp/Library/Caches/org.carthage.CarthageKit/DerivedData/9.2_9C40b/Down/v0.4.2/Build/Intermediates.noindex/ArchiveIntermediates/Down/BuildProductsPath/Release-iphoneos/Down.framework, NSFilePath=/Users/georgemp/Library/Caches/org.carthage.CarthageKit/DerivedData/9.2_9C40b/Down/v0.4.2/Build/Intermediates.noindex/ArchiveIntermediates/Down/BuildProductsPath/Release-iphoneos/Down.framework, NSUnderlyingError=0x7fd250923f10 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

What did you do?

Tried installing Down with the following commands

carthage update Down --platform Mac

carthage update Down --platform Mac --no-use-binaries

What did you expect to happen?

Expected to get a built Down.framework in Carthage/Build/Mac

What happened instead?

The build errored with the error message pasted in the report section

@kengruven
Copy link
Collaborator

It appears that the changeset that broke Mac builds was f2169a1, part of #28.

For anyone else (like me) who doesn't need the newer features, github "iwasrobbed/Down" == 0.3.3 works fine.

@tonyarnold
Copy link
Collaborator

Huh, this is a bit special - the framework is built and archived successfully, but Carthage is looking in BuildProductsPath/Release-iphoneos rather than BuildProductsPath/Release. I'll try to have a look at it today.

@georgemp
Copy link
Author

Unfortunately, I'm still getting the same error when installing via carthage. I also tried deleting my carthage cache, and, trying to install again. My Carthage version is 0.28.0 and XCode is at version 9.2

My workaround now is to add Down.xcodeproj to my application, and, use the built library.

If there is anything I can do to help test/debug this, do let me know. Thanks

@tonyarnold
Copy link
Collaborator

@georgemp how are you specifying the dependency in your Cartfile? This hasn't been released in a tagged version yet, so you would need to do:

github "iwasrobbed/Down" "master"

@georgemp
Copy link
Author

Aah..perfect. That worked :)

@iwasrobbed
Copy link
Collaborator

Just tagged this release v0.5.0 @georgemp and thanks again @tonyarnold 🙌

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

4 participants