1.首先下载GPUImage吧
git clone –recursive https://github.com/BradLarson/GPUImage.git
2.编GPUImage的库
./build.sh(如果遇见xcodebuild: error: SDK “iphoneos9.0” cannot be located,见http://blog.youkuaiyun.com/xx352890098/article/details/77890896)
得到.a的静态库和头文件
3.将.a放在文件目录下,include头文件也放在目录中
4.打开Xcode工程,添加静态库
5.添加header path
6.在ViewController中import头文件,不报错且运行成功即添加完成,比网上其他的靠谱的多。