开发者

Running in the Terminal a build made in XCode, how?

开发者 https://www.devze.com 2022-12-14 19:08 出处:网络
Im creating a project in Xcode using OpenCV as a framework. It works great with the Build&Run option from Xcode, but now I need to run it in the Terminal and it gives me this error:

Im creating a project in Xcode using OpenCV as a framework. It works great with the Build&Run option from Xcode, but now I need to run it in the Terminal and it gives me this error:

dyld: Library not loaded: @executable_path/../Frameworks/OpenCV.framework/Versions/A/OpenCV
Referenced from: /Users/Victor/Documents/PFC/src/opencv/blob/build/Release/./test3
Reason: image not found
Trace/BPT trap

I look for the build and just execute it with 开发者_JS百科./

So, any clue?


You need to run it from the build directory rather than the Release directory (assuming Frameworks is a directory in blob)

0

精彩评论

暂无评论...
验证码 换一张
取 消