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

后端 未结 2 1213
陌清茗
陌清茗 2021-01-18 03:28

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:

         


        
2条回答
  •  梦毁少年i
    2021-01-18 03:57

    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.

提交回复
热议问题