Page 1 of 1

Reason: image not found

Posted: 06 Nov 2017 03:24
by Williams_
When I put the compiled VLCKit.framework into the Mac project, it produces the following error and crash:

Code: Select all

dyld: Library not loaded: @loader_path/../Frameworks/VLCKit.framework/Versions/A/VLCKit Referenced from: /Users/XXX/Library/Developer/Xcode/DerivedData/MacVLC-cxqklppryicquxdnaorhqadksngc/Build/Products/Debug/MacVLC.app/Contents/MacOS/MacVLC Reason: image not found
Tried the solution:
1. Add the framework to the "Embedded binaries" section in the "General" tab.
2. Expand the "Link Binary With Libraries" section add change the status of the VLCKit.framework to Optional.
Solution 2 will not crash, but the vlcplayer object created is nil.

Platform:

Code: Select all

macOS 10.13 & 10.12 Xcode 8.3.3