最近更新Xcode到12.3以後,編譯出現錯誤。提示ide
Building for iOS Simulator, but the linked and embedded framework '****.framework' was built for iOS + iOS Simulator.複製代碼
解決方法是:
Buil Settings - Build Options - Validate Workspace 改成Yes
並且筆者發現Validate Workspace改成Yes以後編譯完成,再改回No,也能夠正常運行ui