Open Nahatakyan opened 2 years ago
For me it works with a new iOS project. Can you share your environment? You should consider using SPM as well for easier integration
@stasel I have the same issue, but I didn't install manually. You can check the bug in this demo project: https://github.com/Shishani58/WebRTC-bug-demo
With a structure: Swift Package with WebRTC in framework Target, you will get an error: Library not loaded. It might be an SPM bug, but I haven't been able to resolve it.
Hey @Shishani58 Not sure what is the purpose of the wrapper local package but it seems to cause the issue. If you directly reference the WebRTC-Package in your project it works with no issues on Xcode 13.4.1
@Nahatakyan @Shishani58 do you have an Apple M1, the issue has been fixed in #61 (but our Intel colleague did not have the issue, only M1s)
Yes, my MacBook on M1 pro
Thanks everyone for reporting and thanks to @GhenadieVP for the fix. I have release a minor patch 109.0.1 with the fix. Can anyone please confirm that the latest release fixes the issue?
Thanks!
@stasel Hello! I add webrtc.framework to my framework by SPM and have same issue. v109.0.1
@stasel Hello! I add webrtc.framework to my framework by SPM and have same issue. v109.0.1
Can you share your Package.swift? Or are you consuming Stasel/WebRTC directly from an app target?
Do you make sure to delete: derived data .build (if SPM) Clear SPM Package caches (Xcode -> File -> Packages -> Clear Cache And try again?
Is it an iOS target or macOS target you are using?
@stasel @CyonAlexRDX Yes, I consuming from an app target. Yes I cleared all of this Error only when real iOS device target. For Mac all good
Is it a bug or I doing something wrong?
@bmp123 can you try to reproduce the issue in a demo empty project and share it here?
@stasel Yes I can. https://github.com/bmp123/demo_webrtc_lib_issue
It compiles on my Xcode 14.2:
@stasel It’s compiled but if you add this framework into some app and start them - you get an error “library not found”
@stasel open Demo.swift, you not see error like in screenshot?
@stasel Yes I can. https://github.com/bmp123/demo_webrtc_lib_issue
![]()
@bmp123 Just by cloning your repo, indeed I got the same error as you. But removing and adding the WebRTC package again - fixed the issue for me.
Hi. I am trying to install a manually downloaded WebRTC. I create an empty project, add
xcframework
to myFrameworks, Libraries, and Embedded content
and just run the empty project. I am getting these errors:Do I need to do something else that's not written in the instructions?
Update. I changed to Embed and sign, and the project works, but when I try to add WebRTC.framework to my framework and it does not work. The same issue