Xcode 9: Swift dependency analysis error

若如初见. 提交于 2019-12-01 03:42:36

It tells that you need to specify the swift version in Build Settings. Just click project and go to Build settings (not the target) and set "Swift Language Version" to Swift 3.2 or Swift 4. Here you have an screenshot :)

First of all I would recommend you to use stable version of Xcode since beta may contain bugs. Xcode 9.2 version is available. You can download XIP file from this link.

You can resolve this error by using below steps :

  1. Select PROJECT
  2. Select Build Settings
  3. In Swift Language Version section select Swift 3.2 or Swift 4.0 depending on your requirement.
  4. Repeat same steps for TARGETS as well
  5. Now clean the project (shortcut : cmd + shift + k)
  6. Now this should build without an error

If you still get the same error then use below steps :

  1. Quit Xcode (shortcut : cmd + Q)
  2. Open your project
  3. Clean project (shortcut : cmd + shift + k)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!