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

How to add 3rd framework to application build by theos? #110

Closed
wugensan opened this issue Nov 26, 2014 · 6 comments
Closed

How to add 3rd framework to application build by theos? #110

wugensan opened this issue Nov 26, 2014 · 6 comments

Comments

@wugensan
Copy link

Hello,
I need to add a 3rd framework to my application build by theos, but I don't know where should it be placed in my project directory or somewhere else, and how to modify the Makefile.
Any help will be gratitude!!!

@thiesdiggity
Copy link

Hi @wugensan, I'm having the same issue. Were you able to figure this out? Any feedback would be greatly appreciated. Thanks!

@kirb
Copy link
Member

kirb commented Feb 12, 2016

The merge of kirb/theos has added proper support for non-Apple frameworks. You can place them in the lib directory, and then reference them with thing_EXTRA_FRAMEWORKS = Blah.

@kvzn
Copy link

kvzn commented Jun 22, 2018

@kirb EXTRA_FRAMEWORKS works for compiling without errors, but doesn't work on the device, why?

@ipadkid358
Copy link

It compiles on your main computer, but not on your iOS device? Or it compiles, but crashes when the binary is run on the iOS device? Is the framework on the iOS device?

@kirb
Copy link
Member

kirb commented Jun 22, 2018

How does it not work? Provide as much detail as possible, including exact error output. You can run make troubleshoot to quickly upload Theos error output to Ghostbin. If it’s building fine but fails to load at runtime, check syslog (using macOS Console.app, or oslog from Cydia) for dyld error messages. Particularly, iOS 11 will refuse to load frameworks installed to /Library/Frameworks. If this is your own framework, you must move it to /usr/lib with MyFramework_INSTALL_PATH = /usr/lib.

This is an old issue thread — if you think you’ve found a bug in Theos, please create another issue. Otherwise, take a look at our advice on getting help.

@kvzn
Copy link

kvzn commented Jun 24, 2018

@kirb Thank you for your very great help. I sign the third party framework with ldid -S first, then put it at /System/Library/Framework, this way works. But if I put the framework at /Library/Framework or /usr/lib, it says image not found in the syslog. My environment is iOS 11.1.2 with Electra, do you know why the framework in /usr/lib can not be loaded? Very appreciate your help!

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