Opening import file for module 'Swift': Not a directory

 ̄綄美尐妖づ 提交于 2019-12-01 16:50:13

I got this error when I had an invalid path to a framework in my Framework Search Path and User Header Search Paths. I simply fixed the path by adding ".framework" to the end of the path, to make the path valid, and this error went away.

Issue cropped up after adding my first swift class to the project.

I fixed it by going into the build settings for ALL targets (including the actual project) and remove any erroneous paths from Framework Search Path.

Specifically:

  1. Simplified the main target to:

    $(inherited)

    $(SRCROOT)

  2. And by removing an old, erroneous path to libxml2 on the project.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!