Showing All Errors Only ld: framework not found IOSurface for architecture a

今天安装Xcode9 beta 后,不小心把公司项目运行在Xcode9上了,然后使用Xcode8再打开,就编译失败;
Error :



Showing All Errors Only ld: framework not found IOSurface for architecture a
Showing All Errors Only ld: framework not found IOSurface for architecture a_第1张图片
Screen Shot 2017-08-03 at 12.51.29 PM.png

最终在stackoverflow中找到答案,
右键 Xcode9-Beta.app 然后点击Show Package Contents(包内容)
在下面目录中找到Xcode8缺少的Framework,将其拷贝到Xcode8相同的目录下,clean下Xcode8项目,再编译运行即可
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/

你可能感兴趣的:(Showing All Errors Only ld: framework not found IOSurface for architecture a)