七牛短视频本来是要在xcode9的基础上做的,不料项目swift2.3升迁不顺,故先是在xcode8.2.1上搞搞试试,竟OK!
1、
Framework not found IOSurface for architecture arm64
解决方案:
Build Settings 中 Link Frameworks Automatically 把默认Yes 改成 No,没作用则将Xcode9
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks目录下的IOSurface.framework、FileProvider.framework拷到Xcode8中相应目录下即可。
2、
在cocopods 集成 pod 'PLPlayerKit'
报错如下:
[!] The 'Pods-vidioProj' target has libraries with conflicting names: libcrypto.a and libssl.a.
因为我们项目原来 百度地图pod 'BaiduMapKit' 已经存在了libcrypto.a and libssl.a.这两个文件
所以pod 'PLPlayerKit' 进来就冲突了
联系七牛的人,说可以动态库试试
无奈,继续研究
3、cocoapods导入第三方库后,xcode上import不提示,找不到第三方库的解决办法:
选择你的工程tagets, -> Build Settings -> Search Paths -> User Header Search Paths
双击User Header Search Paths -> 添加 $(PODS_ROOT) 选择 recursive
4、
引入方式
//#import <PLPlayerKit/PLPlayerKit.h>