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

Development setup questions #119

Open
Sab44 opened this issue Nov 24, 2023 · 2 comments
Open

Development setup questions #119

Sab44 opened this issue Nov 24, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Sab44
Copy link

Sab44 commented Nov 24, 2023

Not a bug.

Found this software, have been using it regularly and wanted to contribute, as I'm a Swift dev myself.
Forked the repo, fetched the master branch and started getting to work.

  1. current state of the master branch does not launch an application window
  2. I have seen that there have been many changes since the last released version so I checked out v1.4.0 which allows me to launch the window. But all settings in the window are greyed out. After debugging I came to the conclusion that CaptureDevice initialization fails as try? UVCDevice(device: avDevice) is throwing an error for the usbDevice. Everything is working fine with the version installed via Homebrew with my Logitech C922.

Some help is appreciated. If I can get it to work I can also supply an update to the README with more instructions on the dev setup.

Thanks!

@Sab44 Sab44 added the bug Something isn't working label Nov 24, 2023
@Techlorine
Copy link

Same problem here while buiding v1.4.0, adding some information from the best of my knowledge:

Here the IOIteratorNext in UnsafeMutablePointer+interface.swift always returns 0, implying no valid iterator was found according to the doc. This is the deeper cause of the nil interfaceRef and the Domain=usbDevice error.

I'm new to Swift and I would appreciate any help on this problem.

Building Environment:

  • Mac Mini with Apple M2 Processor
  • macOS Sonoma v14.1.2
  • Xcode Version 15.0.1 (15A507)

@belak
Copy link

belak commented Jan 16, 2024

I've been trying to get this working as well, though I'm not a Swift dev by trade.

I ended up trying to disable code signing in the project (and all sub-projects) because I just want to run it locally (and I don't have a developer license) and it seems to compile fine, but when I run it, I get this error:

dyld[8588]: Library not loaded: @rpath/Sparkle.framework/Versions/B/Sparkle
  Referenced from: <6300585A-D131-3F9E-BAFF-1B4763FC34A3> /Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/CameraController.app/Contents/MacOS/CameraController
  Reason: tried: '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/Sparkle.framework/Versions/B/Sparkle' (code signature in <08843E26-C65A-3889-B17E-AC620C1B375C> '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/PackageFrameworks/Sparkle.framework/Versions/B/Sparkle' (no such file), '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/CameraController.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' (code signature in <08843E26-C65A-3889-B17E-AC620C1B375C> '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/CameraController.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/CameraController.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' (code signature in <08843E26-C65A-3889-B17E-AC620C1B375C> '/Users/belak/Library/Developer/Xcode/DerivedData/CameraController-cbbodqtrarjkjsdpfsnaosqntqsb/Build/Products/Debug/CameraController.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)

There are also a few swiftlint errors, but they can be worked around.

Does anyone have any suggestions? Do I actually need an Apple Developer Account?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants