ld: framework not found FileProvider for architecture arm64/armv7
原因: 静态库用Xcode9打包,用Xcode8编译的话就会报错
解决办法:从Xcode9里把这个库拷贝出来。然后放到Xcode8上面
步骤:
1.在应用程序内找到Xcode9,右键->显示包内容->
/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/
3.找到报错的文件并拷贝
4.同样的方式找到Xcode8,右键–>显示包内容–> /Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/
5.将文件拷贝
6.重新编译后笔者还报错
framework not found IOSurface for architecture armv7
用同样的方式把报错缺少的文件从Xcode9的frameworks 目录下找到后拷贝到Xcode8目录下面 编译即可通过