3

I try to use VLCKit for an OS X Project coded in Swift, so I built the Framework thanks to compile vlckit on mac os 10.9. Then, I inserted the generated VLCKit.Framework in my project (I see it in the linked Frameworks and Libraries) but when I want to use it or just compile my project with, I have an issue :

ld: framework not found VLCKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)

So, I don't understand how to make it works....

Thanks for your help !

EDIT : I also tried on a Objective-C project, It does the same error..

EDIT 2 : I get a VLCKit.framework from Internet, and the compilation of my project works. It's my own compilation of the framework that didn't work..

Anyway, I can use the framework on a Objective-C project, but the "import VLCKit" in a Swift file didn't work : "No such module 'VLCKit'"

Community
  • 1
  • 1
zarghol
  • 478
  • 5
  • 19

2 Answers2

2

To deploy VLCKit in your swift project, follow these steps :

  • Install the sdk (e.g., using cocoapods)
  • Link the required dependencies (mentioned in the framework repository)
  • Create a bridging header (VLCKit is written in objective c)

The process of installing and using the sdk is well-explained in this tutorial

Good luck

Community
  • 1
  • 1
Essam Fahmi
  • 1,920
  • 24
  • 31
  • Could you please help me with this: https://stackoverflow.com/questions/70313743/how-do-i-install-vlckit-in-ios? – Axel Dec 11 '21 at 08:45
0

You need to add the framework location to your framework / library search paths. Xcode can't find it.

feepk
  • 1,756
  • 1
  • 12
  • 14
  • Well, The framework is in the project folder, and it is this folder indicated for Framework Search Paths and Library Search Paths... – zarghol Feb 24 '15 at 20:16