打开模块"Swift"的导入文件:不是目录 [英] Opening import file for module 'Swift': Not a directory

查看:58
本文介绍了打开模块"Swift"的导入文件:不是目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照此处的说明在Swift上设置libxml之后: libxml/tree.h没有此类文件或目录

我在编译时遇到错误:

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

我在网上搜索过,他们建议清理对我不起作用的项目.知道是什么原因导致了此错误吗?

解决方案

当我的Framework Search PathUser Header Search Paths中的框架路径无效时,出现此错误. 我只是通过在路径末尾添加".framework"来固定路径,以使路径有效,然后该错误消失了.

After following the instructions here to setup libxml on Swift: libxml/tree.h no such file or directory

I encountered an error while compiling which said:

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

I've searched online and they recommending cleaning the project which didn't work for me. Any idea what's causing this error?

解决方案

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.

这篇关于打开模块"Swift"的导入文件:不是目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆