Obslib Framework
A macOS framework created from libobs and consumed by Cocoapods. (Help Wanted)
Install / Use
npx skills add larryaasen/obslib-frameworkInstalls into whichever agent you are using.
README
obslib-framework
<b><i>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</i></b>
Introduction
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.
Current status
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.
One Big Question
How do I configure Xcode during the building of the framework to include the dylibs so that they are automatically linked?
Usage (work in progress)
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.
Building
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.
Cocoapods
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.
TODO
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
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.7kCommit, push, and open a PR
