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

framework not found CocoaFob #30

Open
HeadBanging opened this issue Mar 9, 2017 · 8 comments
Open

framework not found CocoaFob #30

HeadBanging opened this issue Mar 9, 2017 · 8 comments

Comments

@HeadBanging
Copy link

Weirdly, when I try to use CocoaFob - whether in an App I'm writing myself, or building the cocoafob example in this repository, it always fails with:

ld: framework not found CocoaFob
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I can build the frameworks - no issues there - but when I try to use them it all goes wrong! Xcode 8.2.1

@HeadBanging
Copy link
Author

Okay. So the solution for me (and hopefully this will help anyone else who's experiencing a similar problem) was to:

  1. build CocoaFob as release (I'd already done this, but in the interests of completeness) copy the resultant built framework to /Library/Frameworks and use it from there.
  2. Do not attempt to use it in the location where it was built! Neither should you create a symlink in /Library/Frameworks to the location where it was built.

This done, all works well. Phew!

@HeadBanging
Copy link
Author

Okay - that wasn't the trick. All that did was give me a framework that I could use on my machine. I need a framework that works when bundled into my app. Anyone know how to do this?

@glebd
Copy link
Owner

glebd commented Jun 8, 2017

You don't need to build a framework, just include the files directly into your project. The instructions are at https://github.com/glebd/cocoafob/tree/master/swift3

@HeadBanging
Copy link
Author

HeadBanging commented Jun 8, 2017 via email

@glebd
Copy link
Owner

glebd commented Jun 8, 2017

That's very kind, thanks!

@yabdab
Copy link

yabdab commented Jul 4, 2017

@glebd Are there similar instructions for a obj-c app ?

@glebd
Copy link
Owner

glebd commented Jul 4, 2017

The README at the main project page is targeted for Obj-C apps. No need for a framework, just include the files directly in your project. Look at some sample projects mentioned in the README.

@DivineDominion
Copy link
Collaborator

@glebd I think the issue can be closed now that at least the Swift versions do indeed produce a .framework that's easy to use

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