wtsnz / obs-ios-camera-source

Use your iPhone camera as a video source in OBS Studio and stream high quality video from your iPhone's camera over USB
https://obs.camera/
GNU General Public License v2.0
334 stars 61 forks source link

Location of the plugin on MAC #87

Open Massimix opened 1 year ago

Massimix commented 1 year ago

Hi everyone, this is my first time writing. I installed the OBS studio version 28.0.1 and the obs-ios-camera-source-2.9.3-macos-universal.pkg version of the plugin on my mac. Once I installed the plugin and restarted OBS Studio I didn't see iOSCamera among the resources, looking inside the application /Applications/OBS.app/Contents/PlugIns I noticed that the plugin was not there. I looked for the plugin name in the HD and found it in this path / Library / Application Support / obs-studio / plugins. I moved the plugin here /Applications/OBS.app/Contents/PlugIns, restarted OBS Studio finally found in the iOSCamera resources. I don't know if you need to correct the destination within the installer. I hope I have explained, greetings

ilg commented 1 year ago

I hit basically the same issue and moving the plugin into the app bundle "fixed" it for me, too. The problem seems to be Library not loaded: '@rpath/libavcodec.58.134.100.dylib'. Below are the lines from the log that contain ios-camera. In particular, the appearance of /Users/runner/… surprises me, since that's not a user/path on my computer. Maybe something with the rpath changed between builds/versions of the plugin?

12:35:19.872: os_dlopen(/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so->/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so): dlopen(/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so, 0x0101): Library not loaded: '@rpath/libavcodec.58.134.100.dylib'
12:35:19.872:   Referenced from: '/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so'
12:35:19.872:   Reason: tried: '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/libobs/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obsdeps/lib/../lib/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/UI/obs-frontend-api/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/libobs/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obsdeps/lib/../lib/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/UI/obs-frontend-api/libavcodec.58.134.100.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libavcodec.58.134.100.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libavcodec.58.134.100.dylib' (no such file), '/usr/lib/libavcodec.58.134.100.dylib' (no such file)
12:35:19.872: Module '/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so' not loaded
12:35:19.872: os_dlopen(/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so->/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so): dlopen(/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so, 0x0101): Library not loaded: '@rpath/libavcodec.58.134.100.dylib'
12:35:19.872:   Referenced from: '/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so'
12:35:19.872:   Reason: tried: '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/libobs/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obsdeps/lib/../lib/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/UI/obs-frontend-api/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/libobs/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obsdeps/lib/../lib/libavcodec.58.134.100.dylib' (no such file), '/Users/runner/work/obs-ios-camera-source/obs-ios-camera-source/obs-studio/build/UI/obs-frontend-api/libavcodec.58.134.100.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libavcodec.58.134.100.dylib' (no such file), '/Applications/OBS.app/Contents/MacOS/../Frameworks/libavcodec.58.134.100.dylib' (no such file), '/usr/lib/libavcodec.58.134.100.dylib' (no such file)
12:35:19.872: Module '/Library/Application Support/obs-studio/plugins/obs-ios-camera-source/bin/obs-ios-camera-source.so' not loaded
mattlangan commented 1 year ago

This is amazing! Thank you so much for this report! I had assumed that my upgrade to the Ventura beta had broken the integration and that I would have to wait for a fix. This brought my iOS Camera Source back.

darkoperator commented 1 year ago

even after moving the plugin to the /Applications/OBS.app/Contents/PlugIn after upgrading to OBS 28 and installing the latest version of the plugin it still not working for me, had to switch to OBS 27 on the mac to get it to work.

ilg commented 1 year ago

Putting this here in large part for my own reference next time I upgrade OBS—since upgrading replaced the app bundle, it removed the copy of the plugin that was inside the app bundle. Doing this in Terminal put a symbolic link to the normally-installed plugin into the app bundle:

cd /Applications/OBS.app/Contents/PlugIns
ln -s ~/Library/Application\ Support/obs-studio/plugins/obs-ios-camera-source.plugin
djalanking commented 1 year ago

I'm having the same problem (OBS not recognizing the iOS Camera) and doing my best to follow you guys' instructions above but I can't seem to figure it out. I'm probably not as computer literate about copying files from one location to another. Would greatly appreciate any more specific step-by-step guidance on the steps to take to fix! Thanks.