'CoreVideo/CoreVideo.h' file not found

2019-07-14 07:20发布

When I run a iOS App on my device , This error will appear

'CoreVideo/CoreVideo.h' file not found

not matter what project even though create a new project , once run the app on my device this error will appear

but the Simulator will be OK~

and I can't find some frameworks in

Target--Build Phase--Link Binary With Librares--add

like AVFoundation.framework AudioToolBox.framework

Should i reinstall the xcode on my mac~???

1条回答
我想做一个坏孩纸
2楼-- · 2019-07-14 08:07

Make certain you've added the CoreVideo framework to your project.

Here's how I do it in my own projects:

Add CoreVideo project

If you need help figuring out where it is (it's hidden within the XCode app package itself), let me know and I can show you.

Also, make certain "Target Membership" is checked for CoreVideo in the File Inspector of your project. It looks like this:

Target Membership Set, right?

查看更多
登录 后发表回答