今天安裝Xcode9 beta 后,不小心把公司項(xiàng)目運(yùn)行在Xcode9上了,然后使用Xcode8再打開(kāi),就編譯失敗;
Error :
Showing All Errors Only ld: framework not found IOSurface for architecture a

Screen Shot 2017-08-03 at 12.51.29 PM.png
最終在stackoverflow中找到答案,
右鍵 Xcode9-Beta.app 然后點(diǎn)擊Show Package Contents(包內(nèi)容)
在下面目錄中找到Xcode8缺少的Framework,將其拷貝到Xcode8相同的目錄下,clean下Xcode8項(xiàng)目,再編譯運(yùn)行即可
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/