Reason: image not found
Posted: 06 Nov 2017 03:24
When I put the compiled VLCKit.framework into the Mac project, it produces the following error and crash:
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
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
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