XCode Cocoapods workspace 手动添加新文件和找不到文件

XCode Cocoapods workspace manually add new files and file not found

我正在使用 VideoCore (https://github.com/jgh-/VideoCore),我想添加比 CocoaPods 上的项目更新的版本。因此,我首先手动将新源更新为来自 Cocoapods 的源。编译给我错误,包括 header 在 VideoCore Cocoapods 项目中,包括:

#include <videocore/filters/FilterFactory.h>
#include <videocore/filters/Basic/BasicVideoFilterBGRA.h>

// The following line chokes
#include <videocore/filters/Basic/GrayscaleVideoFilter.h> 
#include <videocore/filters/Basic/InvertColorsVideoFilter.h>
#include <videocore/filters/Basic/SepiaVideoFilter.h>

GrayscaleVideoFilter.h 和 BasicVideoFilterBGRA.h 一样在那里。但是不知为何找不到。

header 与其他 header 一样在 Pods-VideoCore 目标(项目 header)中。那我错过了什么?

与其手动更新源代码,不如告诉 cocoapods 你想要最新的代码,而不仅仅是最新的版本。参见 https://guides.cocoapods.org/using/the-podfile.html

例如,在您的 Podfile 中,获取最新的代码

pod 'VideoCore', :head