.h file not found

前端 未结 13 2317
清酒与你
清酒与你 2020-12-07 23:56

I\'m working on an app in xcode 4 and everything was going great, then something odd just started happening. Every time I make a new class (any type of class, ViewController

13条回答
  •  Happy的楠姐
    2020-12-08 00:56

    My issue was I added the MetalPetal pod and I couldn't access the "MTIShaderLib.h" header to build custom filters even though the header was declared as public. I tried everything above and more and more and more from other answers but the problem was listed in the directions for the pod installation that I overlooked.

    What I had to do was go to my main applications icon (the blue icon), select Build Settings, then in the search box I typed in header search paths.

    Under Metal Compiler - Build Options I went to Header Search Paths and pressed the arrow.

    I clicked Debug and in the pop up box I pressed the + sign at the bottom and entered:

    ${PODS_CONFIGURATION_BUILD_DIR}/MetalPetal/MetalPetal.framework/Headers

    I then did the same exact thing for Release. Make sure you do the steps for both Debug and Release

    Problem was resolved after many frustrating hours.

提交回复
热议问题