As the creator and maintainer of this project, I am looking for help making this work and finishing this project. I really need someone with good knowledge of building Cocoapods frameworks in Xcode who can fix the final issues. Please consider helping out. Feel free to leave a comment on this issue ticket #2
This project creates a framework of the OBS Studio core library called libobs by packaging it into a macOS framework. It also creates a Cocoapod called obslib.
This framework contains the pre-built *.dylib files, *.so files, data files, and header files, that are normally part of libobs.
The advantage of using a framework is that Xcode automatically knows how to find the included header and resource files, and link with the binary. The user of the framework does not need to do any extra configuration other than dropping the framework into the project.
When this framework is used in a macOS app, it needs to link with the framework, but also with those included dylibs. I can get the framework to link in an app, but I cannot get the dylibs to link. I am not able to get Xcode to automatically configure the included dylibs to be linked.
How do I configure Xcode during the building of the framework to include the dylibs so that they are automatically linked?
Download the Alpha version of the framework here.
Add the obslib.framework to your Xcode project.
Call the function obs_startup
from your source code.
Compile, link, and run your project.
There is an example folder containing a macOS app that links with this framework.
When building this framework, the Xcode Build Phase configuration has a Run Script phase to fix the paths in the dylibs.
This framework can be built using Codemagic or GitHub Actions.
There is a Cocoapods pod for obslib that can be used to build this framework into a macOS app. See this example for more details.
These PlugIns do not load because: Library not loaded: /tmp/obsdeps/lib/QtWidgets.framework/Versions/5/QtWidgets. UI frameworks like QtWidgets are not being loaded since this is a non-UI framework.
- mac-virtualcam.so
- obs-browser.so
- obs-vst.so